
;
;
;     Model statements for module:  Create 4
;

557$          CREATE,        1,MinutesToBaseTime(0.0001),Entity rb1rec# c1:MinutesToBaseTime(1440):NEXT(558$);

558$          ASSIGN:        Create for receiving b shift1 c1.NumberOut=Create for receiving b shift1 c1.NumberOut + 1
                             :NEXT(115$);


;
;
;     Model statements for module:  Decide 98
;
115$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),561$,Yes:
                             Else,562$,Yes;
561$          ASSIGN:        Decide 98.NumberOut True=Decide 98.NumberOut True + 1:NEXT(541$);

562$          ASSIGN:        Decide 98.NumberOut False=Decide 98.NumberOut False + 1:NEXT(116$);


;
;
;     Model statements for module:  Assign 198
;
541$          ASSIGN:        receiptb1# c1=
                             disc(0.924,0,0.929,1,0.940,2,0.946,6,0.951,8,0.962,9,0.973,15,0.978,16,0.984,17,0.989,18,0.995,19,1,21,67)
                             :NEXT(117$);


;
;
;     Model statements for module:  Decide 99
;
117$          BRANCH,        1:
                             If,receiptb1# c1==0,95$,Yes:
                             If,receiptb1# c1==1,118$,Yes:
                             Else,119$,Yes;

;
;
;     Model statements for module:  Separate 5
;
119$          DUPLICATE,     100 - 50:
                             receiptb1# c1-1,567$,50:NEXT(566$);

566$          ASSIGN:        Separate 5.NumberOut Orig=Separate 5.NumberOut Orig + 1:NEXT(118$);

567$          ASSIGN:        Separate 5.NumberOut Dup=Separate 5.NumberOut Dup + 1:NEXT(118$);


;
;
;     Model statements for module:  Process 10
;
118$          ASSIGN:        Process 10.NumberIn=Process 10.NumberIn + 1:
                             Process 10.WIP=Process 10.WIP+1;
597$          STACK,         1:Save:NEXT(571$);

571$          QUEUE,         Process 10.Queue;
570$          SEIZE,         2,VA:
                             Resource 4_1,1:NEXT(569$);

569$          DELAY:         HoursToBaseTime(expo(10/receiptb1# c1,3)),,VA:NEXT(612$);

612$          ASSIGN:        Process 10.WaitTime=Process 10.WaitTime + Diff.WaitTime;
576$          TALLY:         Process 10.WaitTimePerEntity,Diff.WaitTime,1;
578$          TALLY:         Process 10.TotalTimePerEntity,Diff.StartTime,1;
602$          ASSIGN:        Process 10.VATime=Process 10.VATime + Diff.VATime;
603$          TALLY:         Process 10.VATimePerEntity,Diff.VATime,1;
568$          RELEASE:       Resource 4_1,1;
617$          STACK,         1:Destroy:NEXT(616$);

616$          ASSIGN:        Process 10.NumberOut=Process 10.NumberOut + 1:
                             Process 10.WIP=Process 10.WIP-1:NEXT(87$);


;
;
;     Model statements for module:  Assign 57
;
87$           ASSIGN:        producttype=2:NEXT(180$);


;
;
;     Model statements for module:  Decide 121
;
180$          BRANCH,        1:
                             If,producttype==1,179$,Yes:
                             If,producttype==2,181$,Yes:
                             Else,182$,Yes;
182$          COUNT:         receiptctruck,1:NEXT(173$);


;
;
;     Model statements for module:  Assign 78
;
173$          ASSIGN:        receiptqenter=tnow:NEXT(171$);

171$          QUEUE,         receiptdockqueue;
161$          SEIZE,         2,Other:
                             SELECT(Docks,LRC,index),1:NEXT(162$);


;
;
;     Model statements for module:  Decide 116
;
162$          BRANCH,        1:
                             If,docks(index)==dock1,621$,Yes:
                             Else,622$,Yes;
621$          ASSIGN:        Decide 116.NumberOut True=Decide 116.NumberOut True + 1:NEXT(174$);

622$          ASSIGN:        Decide 116.NumberOut False=Decide 116.NumberOut False + 1:NEXT(297$);

174$          TALLY:         time in receiptq at d1,tnow-receiptqenter,1:NEXT(1$);


;
;
;     Model statements for module:  Assign 2
;
1$            ASSIGN:        truckcap=8:
                             dockno=1:NEXT(2$);

2$            DUPLICATE:     truckcap-1,543$:NEXT(543$);


;
;
;     Model statements for module:  Decide 235
;
543$          BRANCH,        1:
                             If,((STATE(Trans1)==INACTIVE_RES)&&(STATE(Trans5)==INACTIVE_RES)),623$,Yes:
                             Else,624$,Yes;
623$          ASSIGN:        Decide 235.NumberOut True=Decide 235.NumberOut True + 1:NEXT(69$);

624$          ASSIGN:        Decide 235.NumberOut False=Decide 235.NumberOut False + 1:NEXT(544$);


;
;
;     Model statements for module:  Process 1
;
69$           ASSIGN:        Unloading from dock1.NumberIn=Unloading from dock1.NumberIn + 1:
                             Unloading from dock1.WIP=Unloading from dock1.WIP+1;
654$          STACK,         1:Save:NEXT(628$);

628$          QUEUE,         Unloading from dock1.Queue;
627$          SEIZE,         1,VA:
                             SELECT(TransSet7,SNB, ),1:NEXT(626$);

626$          DELAY:         SecondsToBaseTime(UNIF(62,83,61)),,VA:NEXT(669$);

669$          ASSIGN:        Unloading from dock1.WaitTime=Unloading from dock1.WaitTime + Diff.WaitTime;
633$          TALLY:         Unloading from dock1.WaitTimePerEntity,Diff.WaitTime,1;
635$          TALLY:         Unloading from dock1.TotalTimePerEntity,Diff.StartTime,1;
659$          ASSIGN:        Unloading from dock1.VATime=Unloading from dock1.VATime + Diff.VATime;
660$          TALLY:         Unloading from dock1.VATimePerEntity,Diff.VATime,1;
625$          RELEASE:       SELECT(TransSet7,LAST),1;
674$          STACK,         1:Destroy:NEXT(673$);

673$          ASSIGN:        Unloading from dock1.NumberOut=Unloading from dock1.NumberOut + 1:
                             Unloading from dock1.WIP=Unloading from dock1.WIP-1:NEXT(299$);


;
;
;     Model statements for module:  Assign 110
;
299$          ASSIGN:        beginning time for putaway from d1=tnow:NEXT(165$);

165$          ASSIGN:        product3stock=(producttype==3)*(product3stock+1)+(producttype<>3)*(product3stock+0):
                             product2stock=(producttype==2)*(product2stock+1)+(producttype<>2)*(product2stock+0):
                             product1stock=(producttype==1)*(product1stock+1)+(producttype<>1)*(product1stock+0);
167$          WRITE,         stockr:
                             totalstock,
                             tnow:NEXT(3$);


;
;
;     Model statements for module:  Assign 3
;
3$            ASSIGN:        i=1:NEXT(4$);


;
;
;     Model statements for module:  Assign 4
;
4$            ASSIGN:        replaced=0:NEXT(5$);

5$            WHILE:         (replaced==0):NEXT(8$);


;
;
;     Model statements for module:  Decide 3
;
8$            BRANCH,        1:
                             If,(LocationA(i,1) == 0) ||  ( (producttype  ==  LocationA (i,2)) && (LocationA(i,1) < Capacity) ),
                             676$,Yes:
                             Else,677$,Yes;
676$          ASSIGN:        Decide 3.NumberOut True=Decide 3.NumberOut True + 1:NEXT(7$);

677$          ASSIGN:        Decide 3.NumberOut False=Decide 3.NumberOut False + 1:NEXT(10$);

7$            ASSIGN:        LocationA(i,1)=LocationA(i,1)+1:
                             LocationA(i,2)=producttype:NEXT(11$);


;
;
;     Model statements for module:  Assign 11
;
11$           ASSIGN:        Locationtype=1:NEXT(57$);


;
;
;     Model statements for module:  Decide 45
;
57$           BRANCH,        1:
                             If,dockno==1,678$,Yes:
                             Else,679$,Yes;
678$          ASSIGN:        Decide 45.NumberOut True=Decide 45.NumberOut True + 1:NEXT(508$);

679$          ASSIGN:        Decide 45.NumberOut False=Decide 45.NumberOut False + 1:NEXT(507$);


;
;
;     Model statements for module:  Assign 183
;
508$          ASSIGN:        width1=
                             (LocationA(i,1)==1)*4+(LocationA(i,1)==2)*3+(LocationA(i,1)==3)*2+(LocationA(i,1)==4)*1+(LocationA(i,1)==5)*0:
                             distance1=20+i*1+width1:NEXT(13$);


;
;
;     Model statements for module:  Assign 13
;
13$           ASSIGN:        replaced=1:NEXT(14$);

14$           ENDWHILE:NEXT(54$);


;
;
;     Model statements for module:  Decide 44
;
54$           BRANCH,        1:
                             If,dockno==1,680$,Yes:
                             Else,681$,Yes;
680$          ASSIGN:        Decide 44.NumberOut True=Decide 44.NumberOut True + 1:NEXT(16$);

681$          ASSIGN:        Decide 44.NumberOut False=Decide 44.NumberOut False + 1:NEXT(55$);


;
;
;     Model statements for module:  Seize 2
;
16$           QUEUE,         Seizing a forklift from forklift set at receiving ramp1.Queue;
              SEIZE,         2,Other:
                             SELECT(TransSet1,CYC, trans_no1),1:NEXT(683$);

683$          DELAY:         0.0,,VA:NEXT(527$);


;
;
;     Model statements for module:  Decide 229
;
527$          BRANCH,        1:
                             If,stock exceeded<>1,684$,Yes:
                             Else,685$,Yes;
684$          ASSIGN:        Decide 229.NumberOut True=Decide 229.NumberOut True + 1:NEXT(18$);

685$          ASSIGN:        Decide 229.NumberOut False=Decide 229.NumberOut False + 1:NEXT(528$);


;
;
;     Model statements for module:  Delay 1
;
18$           DELAY:         
                             SecondsToBaseTime((Locationtype==1)*((34.521+(0.915*distance1)+NORM(0,7.3))*2)+(Locationtype==2)*((34.521+(0.915*distance3)+NORM(0,7.3))*2)+(Locationtype==3)*((34.521+(0.915*distance5)+NORM(0,7.3))*2)+(Locationtype==4)*((34.521+(0.915*distance7)+NORM(0,7.3))*2)),,
                             Other:NEXT(19$);

19$           RELEASE:       Member(TransSet1, Trans_No1),1;
301$          TALLY:         time for putaway from d1,tnow-beginning time for putaway from d1,1;
211$          ASSIGN:        #unloaded1=#unloaded1+1:NEXT(20$);


;
;
;     Model statements for module:  Decide 6
;
20$           BRANCH,        1:
                             If,#unloaded1==truckcap,686$,Yes:
                             Else,687$,Yes;
686$          ASSIGN:        Decide 6.NumberOut True=Decide 6.NumberOut True + 1:NEXT(21$);

687$          ASSIGN:        Decide 6.NumberOut False=Decide 6.NumberOut False + 1:NEXT(15$);


;
;
;     Model statements for module:  Release 1
;
21$           RELEASE:       dock1,1:NEXT(184$);

184$          TALLY:         time in system from d1,tnow-receiptqenter,1;
212$          ASSIGN:        #unloaded1=#unloaded1-#unloaded1:NEXT(15$);


;
;
;     Model statements for module:  Dispose 1
;
15$           ASSIGN:        Dispose 1.NumberOut=Dispose 1.NumberOut + 1;
688$          DISPOSE:       Yes;


;
;
;     Model statements for module:  Delay 14
;
528$          DELAY:         SecondsToBaseTime(((34.521+(0.915*averagedistance)+Norm(0,7.3))*2)),,Other:NEXT(19$);


;
;
;     Model statements for module:  Seize 15
;
55$           QUEUE,         Seizing a forklift from forklift set at receiving ramp2.Queue;
              SEIZE,         2,Other:
                             SELECT(TransSet2,CYC, trans_no2),1:NEXT(690$);

690$          DELAY:         0.0,,VA:NEXT(530$);


;
;
;     Model statements for module:  Decide 230
;
530$          BRANCH,        1:
                             If,stock exceeded<>1,691$,Yes:
                             Else,692$,Yes;
691$          ASSIGN:        Decide 230.NumberOut True=Decide 230.NumberOut True + 1:NEXT(58$);

692$          ASSIGN:        Decide 230.NumberOut False=Decide 230.NumberOut False + 1:NEXT(529$);


;
;
;     Model statements for module:  Delay 11
;
58$           DELAY:         
                             SecondsToBaseTime((Locationtype==1)*((34.521+(0.915*distance2)+NORM(0,7.3))*2)+(Locationtype==2)*((34.521+(0.915*distance4)+NORM(0,7.3))*2)+(Locationtype==3)*((34.521+(0.915*distance6)+NORM(0,7.3))*2)+(Locationtype==4)*((34.521+(0.915*distance8)+NORM(0,7.3))*2)),,
                             Other:NEXT(59$);

59$           RELEASE:       Member(TransSet2, Trans_No2),1;
302$          TALLY:         time for putaway from d2,tnow-beginning time for putaway from d2,1;
213$          ASSIGN:        #unloaded2=#unloaded2+1:NEXT(61$);


;
;
;     Model statements for module:  Decide 56
;
61$           BRANCH,        1:
                             If,#unloaded2==truckcap,693$,Yes:
                             Else,694$,Yes;
693$          ASSIGN:        Decide 56.NumberOut True=Decide 56.NumberOut True + 1:NEXT(62$);

694$          ASSIGN:        Decide 56.NumberOut False=Decide 56.NumberOut False + 1:NEXT(60$);


;
;
;     Model statements for module:  Release 15
;
62$           RELEASE:       dock2,1:NEXT(183$);

183$          TALLY:         time in system from d2,tnow-receiptqenter,1;
214$          ASSIGN:        #unloaded2=#unloaded2-#unloaded2:NEXT(60$);


;
;
;     Model statements for module:  Dispose 15
;
60$           ASSIGN:        Dispose 15.NumberOut=Dispose 15.NumberOut + 1;
695$          DISPOSE:       Yes;


;
;
;     Model statements for module:  Delay 15
;
529$          DELAY:         SecondsToBaseTime(((34.521+(0.915*averagedistance)+Norm(0,7.3))*2)),,Other:NEXT(59$);


;
;
;     Model statements for module:  Assign 182
;
507$          ASSIGN:        width2=
                             (LocationA(i,1)==1)*4+(LocationA(i,1)==2)*3+(LocationA(i,1)==3)*2+(LocationA(i,1)==4)*1+(LocationA(i,1)==5)*0:
                             distance2=23+i*1+width2:NEXT(13$);


;
;
;     Model statements for module:  Decide 4
;
10$           BRANCH,        1:
                             If,
                             ((LocationB(i,1) == 0) ||  ( (producttype  ==  LocationB (i,2)) && (LocationB(i,1) < Capacity) )),
                             696$,Yes:
                             Else,697$,Yes;
696$          ASSIGN:        Decide 4.NumberOut True=Decide 4.NumberOut True + 1:NEXT(6$);

697$          ASSIGN:        Decide 4.NumberOut False=Decide 4.NumberOut False + 1:NEXT(71$);

6$            ASSIGN:        LocationB(i,1)=LocationB(i,1)+1:
                             LocationB(i,2)=producttype:NEXT(12$);


;
;
;     Model statements for module:  Assign 12
;
12$           ASSIGN:        Locationtype=2:NEXT(509$);


;
;
;     Model statements for module:  Decide 223
;
509$          BRANCH,        1:
                             If,dockno==1,698$,Yes:
                             Else,699$,Yes;
698$          ASSIGN:        Decide 223.NumberOut True=Decide 223.NumberOut True + 1:NEXT(510$);

699$          ASSIGN:        Decide 223.NumberOut False=Decide 223.NumberOut False + 1:NEXT(511$);


;
;
;     Model statements for module:  Assign 184
;
510$          ASSIGN:        width3=
                             (LocationB(i,1)==1)*4+(LocationB(i,1)==2)*3+(LocationB(i,1)==3)*2+(LocationB(i,1)==4)*1+(LocationB(i,1)==5)*0:
                             distance3=20+i*1+width3:NEXT(13$);


;
;
;     Model statements for module:  Assign 186
;
511$          ASSIGN:        width4=
                             (LocationB(i,1)==1)*4+(LocationB(i,1)==2)*3+(LocationB(i,1)==3)*2+(LocationB(i,1)==4)*1+(LocationB(i,1)==5)*0:
                             distance4=23+i*1+width4:NEXT(13$);


;
;
;     Model statements for module:  Decide 67
;
71$           BRANCH,        1:
                             If,((LocationC(i,1) == 0) ||  ( (producttype  ==  LocationC (i,2)) && (LocationC(i,1) < 8) )),700$,
                             Yes:
                             Else,701$,Yes;
700$          ASSIGN:        Decide 67.NumberOut True=Decide 67.NumberOut True + 1:NEXT(72$);

701$          ASSIGN:        Decide 67.NumberOut False=Decide 67.NumberOut False + 1:NEXT(150$);

72$           ASSIGN:        LocationC(i,1)=LocationC(i,1)+1:
                             LocationC(i,2)=producttype:NEXT(73$);


;
;
;     Model statements for module:  Assign 49
;
73$           ASSIGN:        Locationtype=3:NEXT(74$);


;
;
;     Model statements for module:  Decide 68
;
74$           BRANCH,        1:
                             If,dockno==1,702$,Yes:
                             Else,703$,Yes;
702$          ASSIGN:        Decide 68.NumberOut True=Decide 68.NumberOut True + 1:NEXT(75$);

703$          ASSIGN:        Decide 68.NumberOut False=Decide 68.NumberOut False + 1:NEXT(76$);


;
;
;     Model statements for module:  Assign 51
;
75$           ASSIGN:        width5=
                             (LocationC(i,1)==1)*7+(LocationC(i,1)==2)*6+(LocationC(i,1)==3)*5+(LocationC(i,1)==4)*4+(LocationC(i,1)==5)*3+(LocationC(i,1)==6)*2+(LocationC(i,1)==7)*1+(LocationC(i,1)==8)*0:
                             distance5=13+i*1+width5:NEXT(13$);


;
;
;     Model statements for module:  Assign 52
;
76$           ASSIGN:        width6=
                             (LocationC(i,1)==1)*7+(LocationC(i,1)==2)*6+(LocationC(i,1)==3)*5+(LocationC(i,1)==4)*4+(LocationC(i,1)==5)*3+(LocationC(i,1)==6)*2+(LocationC(i,1)==7)*1+(LocationC(i,1)==8)*0:
                             distance6=14+i*1+width6:NEXT(13$);


;
;
;     Model statements for module:  Decide 110
;
150$          BRANCH,        1:
                             If,((LocationD(i,1) == 0) ||  ( (producttype  ==  LocationD (i,2)) && (LocationD(i,1) < 8) )),704$,
                             Yes:
                             Else,705$,Yes;
704$          ASSIGN:        Decide 110.NumberOut True=Decide 110.NumberOut True + 1:NEXT(151$);

705$          ASSIGN:        Decide 110.NumberOut False=Decide 110.NumberOut False + 1:NEXT(9$);

151$          ASSIGN:        LocationD(i,1)=LocationD(i,1)+1:
                             LocationD(i,2)=producttype:NEXT(152$);


;
;
;     Model statements for module:  Assign 76
;
152$          ASSIGN:        Locationtype=4:NEXT(512$);


;
;
;     Model statements for module:  Decide 224
;
512$          BRANCH,        1:
                             If,dockno==1,706$,Yes:
                             Else,707$,Yes;
706$          ASSIGN:        Decide 224.NumberOut True=Decide 224.NumberOut True + 1:NEXT(513$);

707$          ASSIGN:        Decide 224.NumberOut False=Decide 224.NumberOut False + 1:NEXT(514$);


;
;
;     Model statements for module:  Assign 189
;
513$          ASSIGN:        width7=
                             (LocationD(i,1)==1)*7+(LocationD(i,1)==2)*6+(LocationD(i,1)==3)*5+(LocationD(i,1)==4)*4+(LocationD(i,1)==5)*3+(LocationD(i,1)==6)*2+(LocationD(i,1)==7)*1+(LocationD(i,1)==8)*0:
                             distance7=13+i*1+width7:NEXT(13$);


;
;
;     Model statements for module:  Assign 190
;
514$          ASSIGN:        width8=
                             (LocationD(i,1)==1)*7+(LocationD(i,1)==2)*6+(LocationD(i,1)==3)*5+(LocationD(i,1)==4)*4+(LocationD(i,1)==5)*3+(LocationD(i,1)==6)*2+(LocationD(i,1)==7)*1+(LocationD(i,1)==8)*0:
                             distance8=14+i*1+width8:NEXT(13$);


;
;
;     Model statements for module:  Assign 10
;
9$            ASSIGN:        i=i+1:NEXT(525$);


;
;
;     Model statements for module:  Decide 228
;
525$          BRANCH,        1:
                             If,i<=231,708$,Yes:
                             Else,709$,Yes;
708$          ASSIGN:        Decide 228.NumberOut True=Decide 228.NumberOut True + 1:NEXT(14$);

709$          ASSIGN:        Decide 228.NumberOut False=Decide 228.NumberOut False + 1:NEXT(526$);


;
;
;     Model statements for module:  Assign 196
;
526$          ASSIGN:        stock exceeded=1:NEXT(521$);


;
;
;     Model statements for module:  Decide 227
;
521$          BRANCH,        1:
                             If,producttype==1,522$,Yes:
                             If,producttype==2,523$,Yes:
                             Else,524$,Yes;
524$          ASSIGN:        stock3=stock3+1:NEXT(54$);

522$          ASSIGN:        stock1=stock1+1:NEXT(54$);

523$          ASSIGN:        stock2=stock2+1:NEXT(54$);


;
;
;     Model statements for module:  Process 78
;
544$          ASSIGN:        Unloading from dock1_1.NumberIn=Unloading from dock1_1.NumberIn + 1:
                             Unloading from dock1_1.WIP=Unloading from dock1_1.WIP+1;
741$          STACK,         1:Save:NEXT(715$);

715$          QUEUE,         Unloading from dock1_1.Queue;
714$          SEIZE,         1,VA:
                             SELECT(TransSet4,SNB, ),1:NEXT(713$);

713$          DELAY:         SecondsToBaseTime(UNIF(62,83,61)),,VA:NEXT(756$);

756$          ASSIGN:        Unloading from dock1_1.WaitTime=Unloading from dock1_1.WaitTime + Diff.WaitTime;
720$          TALLY:         Unloading from dock1_1.WaitTimePerEntity,Diff.WaitTime,1;
722$          TALLY:         Unloading from dock1_1.TotalTimePerEntity,Diff.StartTime,1;
746$          ASSIGN:        Unloading from dock1_1.VATime=Unloading from dock1_1.VATime + Diff.VATime;
747$          TALLY:         Unloading from dock1_1.VATimePerEntity,Diff.VATime,1;
712$          RELEASE:       SELECT(TransSet4,LAST),1;
761$          STACK,         1:Destroy:NEXT(760$);

760$          ASSIGN:        Unloading from dock1_1.NumberOut=Unloading from dock1_1.NumberOut + 1:
                             Unloading from dock1_1.WIP=Unloading from dock1_1.WIP-1:NEXT(299$);

297$          TALLY:         time in receiptq at d2,tnow-receiptqenter,1:NEXT(22$);


;
;
;     Model statements for module:  Assign 15
;
22$           ASSIGN:        truckcap=8:
                             dockno=2:NEXT(23$);

23$           DUPLICATE:     truckcap-1,545$:NEXT(545$);


;
;
;     Model statements for module:  Decide 236
;
545$          BRANCH,        1:
                             If,((STATE(Trans3)==INACTIVE_RES)&&(STATE(Trans5)==INACTIVE_RES)),763$,Yes:
                             Else,764$,Yes;
763$          ASSIGN:        Decide 236.NumberOut True=Decide 236.NumberOut True + 1:NEXT(70$);

764$          ASSIGN:        Decide 236.NumberOut False=Decide 236.NumberOut False + 1:NEXT(546$);


;
;
;     Model statements for module:  Process 2
;
70$           ASSIGN:        Unloading from dock2.NumberIn=Unloading from dock2.NumberIn + 1:
                             Unloading from dock2.WIP=Unloading from dock2.WIP+1;
794$          STACK,         1:Save:NEXT(768$);

768$          QUEUE,         Unloading from dock2.Queue;
767$          SEIZE,         1,VA:
                             SELECT(TransSet8,SNB, ),1:NEXT(766$);

766$          DELAY:         SecondsToBaseTime(UNIF(62,83,62)),,VA:NEXT(809$);

809$          ASSIGN:        Unloading from dock2.WaitTime=Unloading from dock2.WaitTime + Diff.WaitTime;
773$          TALLY:         Unloading from dock2.WaitTimePerEntity,Diff.WaitTime,1;
775$          TALLY:         Unloading from dock2.TotalTimePerEntity,Diff.StartTime,1;
799$          ASSIGN:        Unloading from dock2.VATime=Unloading from dock2.VATime + Diff.VATime;
800$          TALLY:         Unloading from dock2.VATimePerEntity,Diff.VATime,1;
765$          RELEASE:       SELECT(TransSet8,LAST),1;
814$          STACK,         1:Destroy:NEXT(813$);

813$          ASSIGN:        Unloading from dock2.NumberOut=Unloading from dock2.NumberOut + 1:
                             Unloading from dock2.WIP=Unloading from dock2.WIP-1:NEXT(300$);


;
;
;     Model statements for module:  Assign 111
;
300$          ASSIGN:        beginning time for putaway from d2=tnow:NEXT(165$);


;
;
;     Model statements for module:  Process 79
;
546$          ASSIGN:        Unloading from dock2_1.NumberIn=Unloading from dock2_1.NumberIn + 1:
                             Unloading from dock2_1.WIP=Unloading from dock2_1.WIP+1;
845$          STACK,         1:Save:NEXT(819$);

819$          QUEUE,         Unloading from dock2_1.Queue;
818$          SEIZE,         1,VA:
                             SELECT(TransSet5,SNB, ),1:NEXT(817$);

817$          DELAY:         SecondsToBaseTime(UNIF(62,83,62)),,VA:NEXT(860$);

860$          ASSIGN:        Unloading from dock2_1.WaitTime=Unloading from dock2_1.WaitTime + Diff.WaitTime;
824$          TALLY:         Unloading from dock2_1.WaitTimePerEntity,Diff.WaitTime,1;
826$          TALLY:         Unloading from dock2_1.TotalTimePerEntity,Diff.StartTime,1;
850$          ASSIGN:        Unloading from dock2_1.VATime=Unloading from dock2_1.VATime + Diff.VATime;
851$          TALLY:         Unloading from dock2_1.VATimePerEntity,Diff.VATime,1;
816$          RELEASE:       SELECT(TransSet5,LAST),1;
865$          STACK,         1:Destroy:NEXT(864$);

864$          ASSIGN:        Unloading from dock2_1.NumberOut=Unloading from dock2_1.NumberOut + 1:
                             Unloading from dock2_1.WIP=Unloading from dock2_1.WIP-1:NEXT(300$);

179$          COUNT:         receiptatruck,1:NEXT(173$);

181$          COUNT:         receiptbtruck,1:NEXT(173$);


;
;
;     Model statements for module:  Dispose 16
;
95$           ASSIGN:        Dispose 16.NumberOut=Dispose 16.NumberOut + 1;
867$          DISPOSE:       Yes;


;
;
;     Model statements for module:  Assign 69
;
116$          ASSIGN:        receiptb2# c1=
                             disc(0.929,0,0.935,1,0.946,7,0.957,8,0.967,12,0.973,15,0.978,17,0.984,19,0.989,21,0.995,27,1,28,68)
                             :NEXT(120$);


;
;
;     Model statements for module:  Decide 100
;
120$          BRANCH,        1:
                             If,receiptb2# c1==0,95$,Yes:
                             If,receiptb2# c1==1,121$,Yes:
                             Else,122$,Yes;

;
;
;     Model statements for module:  Separate 6
;
122$          DUPLICATE,     100 - 50:
                             receiptb2# c1-1,872$,50:NEXT(871$);

871$          ASSIGN:        Separate 6.NumberOut Orig=Separate 6.NumberOut Orig + 1:NEXT(121$);

872$          ASSIGN:        Separate 6.NumberOut Dup=Separate 6.NumberOut Dup + 1:NEXT(121$);


;
;
;     Model statements for module:  Process 11
;
121$          ASSIGN:        Process 11.NumberIn=Process 11.NumberIn + 1:
                             Process 11.WIP=Process 11.WIP+1;
902$          STACK,         1:Save:NEXT(876$);

876$          QUEUE,         Process 11.Queue;
875$          SEIZE,         2,VA:
                             Resource 5,1:NEXT(874$);

874$          DELAY:         HoursToBaseTime(expo(14/receiptb2# c1,4)),,VA:NEXT(917$);

917$          ASSIGN:        Process 11.WaitTime=Process 11.WaitTime + Diff.WaitTime;
881$          TALLY:         Process 11.WaitTimePerEntity,Diff.WaitTime,1;
883$          TALLY:         Process 11.TotalTimePerEntity,Diff.StartTime,1;
907$          ASSIGN:        Process 11.VATime=Process 11.VATime + Diff.VATime;
908$          TALLY:         Process 11.VATimePerEntity,Diff.VATime,1;
873$          RELEASE:       Resource 5,1;
922$          STACK,         1:Destroy:NEXT(921$);

921$          ASSIGN:        Process 11.NumberOut=Process 11.NumberOut + 1:
                             Process 11.WIP=Process 11.WIP-1:NEXT(87$);


;
;
;     Model statements for module:  Create 5
;

924$          CREATE,        1,MinutesToBaseTime(0.0001),Entity rc1rec# c1:MinutesToBaseTime(1440):NEXT(925$);

925$          ASSIGN:        Create for receiving c shift1 c1.NumberOut=Create for receiving c shift1 c1.NumberOut + 1
                             :NEXT(123$);


;
;
;     Model statements for module:  Decide 101
;
123$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),928$,Yes:
                             Else,929$,Yes;
928$          ASSIGN:        Decide 101.NumberOut True=Decide 101.NumberOut True + 1:NEXT(124$);

929$          ASSIGN:        Decide 101.NumberOut False=Decide 101.NumberOut False + 1:NEXT(125$);


;
;
;     Model statements for module:  Assign 70
;
124$          ASSIGN:        receiptc1# c1=disc(0.848,0,0.859,1,0.880,2,0.902,3,0.935,4,0.962,5,0.973,6,0.989,7,0.995,8,1,10,69)
                             :NEXT(126$);


;
;
;     Model statements for module:  Decide 102
;
126$          BRANCH,        1:
                             If,receiptc1# c1==0,95$,Yes:
                             If,receiptc1# c1==1,127$,Yes:
                             Else,128$,Yes;

;
;
;     Model statements for module:  Separate 7
;
128$          DUPLICATE,     100 - 50:
                             receiptc1# c1-1,934$,50:NEXT(933$);

933$          ASSIGN:        Separate 7.NumberOut Orig=Separate 7.NumberOut Orig + 1:NEXT(127$);

934$          ASSIGN:        Separate 7.NumberOut Dup=Separate 7.NumberOut Dup + 1:NEXT(127$);


;
;
;     Model statements for module:  Process 12
;
127$          ASSIGN:        Process 12.NumberIn=Process 12.NumberIn + 1:
                             Process 12.WIP=Process 12.WIP+1;
964$          STACK,         1:Save:NEXT(938$);

938$          QUEUE,         Process 12.Queue;
937$          SEIZE,         2,VA:
                             Resource 6,1:NEXT(936$);

936$          DELAY:         HoursToBaseTime(expo(10/receiptc1# c1,5)),,VA:NEXT(979$);

979$          ASSIGN:        Process 12.WaitTime=Process 12.WaitTime + Diff.WaitTime;
943$          TALLY:         Process 12.WaitTimePerEntity,Diff.WaitTime,1;
945$          TALLY:         Process 12.TotalTimePerEntity,Diff.StartTime,1;
969$          ASSIGN:        Process 12.VATime=Process 12.VATime + Diff.VATime;
970$          TALLY:         Process 12.VATimePerEntity,Diff.VATime,1;
935$          RELEASE:       Resource 6,1;
984$          STACK,         1:Destroy:NEXT(983$);

983$          ASSIGN:        Process 12.NumberOut=Process 12.NumberOut + 1:
                             Process 12.WIP=Process 12.WIP-1:NEXT(88$);


;
;
;     Model statements for module:  Assign 58
;
88$           ASSIGN:        producttype=3:NEXT(180$);


;
;
;     Model statements for module:  Assign 71
;
125$          ASSIGN:        receiptc2# c1=disc(0.848,0,0.864,1,0.875,2,0.913,3,0.946,4,0.973,5,0.989,6,0.995,8,1,10,70)
                             :NEXT(129$);


;
;
;     Model statements for module:  Decide 103
;
129$          BRANCH,        1:
                             If,receiptc2# c1==0,95$,Yes:
                             If,receiptc2# c1==1,130$,Yes:
                             Else,131$,Yes;

;
;
;     Model statements for module:  Separate 8
;
131$          DUPLICATE,     100 - 50:
                             receiptc2# c1-1,990$,50:NEXT(989$);

989$          ASSIGN:        Separate 8.NumberOut Orig=Separate 8.NumberOut Orig + 1:NEXT(130$);

990$          ASSIGN:        Separate 8.NumberOut Dup=Separate 8.NumberOut Dup + 1:NEXT(130$);


;
;
;     Model statements for module:  Process 13
;
130$          ASSIGN:        Process 13.NumberIn=Process 13.NumberIn + 1:
                             Process 13.WIP=Process 13.WIP+1;
1020$         STACK,         1:Save:NEXT(994$);

994$          QUEUE,         Process 13.Queue;
993$          SEIZE,         2,VA:
                             Resource 7,1:NEXT(992$);

992$          DELAY:         HoursToBaseTime(expo(14/receiptc2# c1,6)),,VA:NEXT(1035$);

1035$         ASSIGN:        Process 13.WaitTime=Process 13.WaitTime + Diff.WaitTime;
999$          TALLY:         Process 13.WaitTimePerEntity,Diff.WaitTime,1;
1001$         TALLY:         Process 13.TotalTimePerEntity,Diff.StartTime,1;
1025$         ASSIGN:        Process 13.VATime=Process 13.VATime + Diff.VATime;
1026$         TALLY:         Process 13.VATimePerEntity,Diff.VATime,1;
991$          RELEASE:       Resource 7,1;
1040$         STACK,         1:Destroy:NEXT(1039$);

1039$         ASSIGN:        Process 13.NumberOut=Process 13.NumberOut + 1:
                             Process 13.WIP=Process 13.WIP-1:NEXT(88$);


;
;
;     Model statements for module:  Create 6
;

1042$         CREATE,        1,MinutesToBaseTime(0.0001),Entity sb1ship# c1:MinutesToBaseTime(1440):NEXT(1043$);

1043$         ASSIGN:        Create for shipment b shift1 c1.NumberOut=Create for shipment b shift1 c1.NumberOut + 1:NEXT(132$);


;
;
;     Model statements for module:  Decide 104
;
132$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),1046$,Yes:
                             Else,1047$,Yes;
1046$         ASSIGN:        Decide 104.NumberOut True=Decide 104.NumberOut True + 1:NEXT(133$);

1047$         ASSIGN:        Decide 104.NumberOut False=Decide 104.NumberOut False + 1:NEXT(134$);


;
;
;     Model statements for module:  Assign 72
;
133$          ASSIGN:        departureb1# c1=disc(0.674,0,0.717,1,0.783,2,0.810,3,0.918,4,0.973,5,1,6,97):NEXT(135$);


;
;
;     Model statements for module:  Decide 105
;
135$          BRANCH,        1:
                             If,departureb1# c1==0,108$,Yes:
                             If,departureb1# c1==1,136$,Yes:
                             Else,137$,Yes;

;
;
;     Model statements for module:  Separate 9
;
137$          DUPLICATE,     100 - 50:
                             departureb1# c1-1,1052$,50:NEXT(1051$);

1051$         ASSIGN:        Separate 9.NumberOut Orig=Separate 9.NumberOut Orig + 1:NEXT(136$);

1052$         ASSIGN:        Separate 9.NumberOut Dup=Separate 9.NumberOut Dup + 1:NEXT(136$);


;
;
;     Model statements for module:  Process 14
;
136$          ASSIGN:        Process 14.NumberIn=Process 14.NumberIn + 1:
                             Process 14.WIP=Process 14.WIP+1;
1082$         STACK,         1:Save:NEXT(1056$);

1056$         QUEUE,         Process 14.Queue;
1055$         SEIZE,         2,VA:
                             Resource 8,1:NEXT(1054$);

1054$         DELAY:         HoursToBaseTime(expo(10/departureb1# c1,33)),,VA:NEXT(1097$);

1097$         ASSIGN:        Process 14.WaitTime=Process 14.WaitTime + Diff.WaitTime;
1061$         TALLY:         Process 14.WaitTimePerEntity,Diff.WaitTime,1;
1063$         TALLY:         Process 14.TotalTimePerEntity,Diff.StartTime,1;
1087$         ASSIGN:        Process 14.VATime=Process 14.VATime + Diff.VATime;
1088$         TALLY:         Process 14.VATimePerEntity,Diff.VATime,1;
1053$         RELEASE:       Resource 8,1;
1102$         STACK,         1:Destroy:NEXT(1101$);

1101$         ASSIGN:        Process 14.NumberOut=Process 14.NumberOut + 1:
                             Process 14.WIP=Process 14.WIP-1:NEXT(90$);


;
;
;     Model statements for module:  Assign 60
;
90$           ASSIGN:        type=2:NEXT(158$);


;
;
;     Model statements for module:  Decide 115
;
158$          BRANCH,        1:
                             If,type==1,168$,Yes:
                             If,type==2,169$,Yes:
                             Else,170$,Yes;

;
;
;     Model statements for module:  Decide 120
;
170$          BRANCH,        1:
                             If,product3stock>=safety stock,1106$,Yes:
                             Else,1107$,Yes;
1106$         ASSIGN:        Decide 120.NumberOut True=Decide 120.NumberOut True + 1:NEXT(221$);

1107$         ASSIGN:        Decide 120.NumberOut False=Decide 120.NumberOut False + 1:NEXT(160$);

221$          COUNT:         dispatchctruck,1:NEXT(24$);


;
;
;     Model statements for module:  Assign 23
;
24$           ASSIGN:        ordersize=8:
                             shipmentqenter=tnow:NEXT(68$);

68$           ASSIGN:        product2stock=(type==2)*(product2stock-8)+(type<>2)*(product2stock-0):
                             product3stock=(type==3)*(product3stock-8)+(type<>3)*(product3stock-0):
                             product1stock=(type==1)*(product1stock-8)+(type<>1)*(product1stock-0);
166$          WRITE,         stock:
                             totalstock,
                             tnow;
172$          QUEUE,         shipmentdockqueue;
163$          SEIZE,         1,Other:
                             SELECT(S_docks,LRC,s_index),1:NEXT(164$);


;
;
;     Model statements for module:  Decide 117
;
164$          BRANCH,        1:
                             If,s_docks(s_index)==dock1,1108$,Yes:
                             Else,1109$,Yes;
1108$         ASSIGN:        Decide 117.NumberOut True=Decide 117.NumberOut True + 1:NEXT(175$);

1109$         ASSIGN:        Decide 117.NumberOut False=Decide 117.NumberOut False + 1:NEXT(298$);

175$          TALLY:         time in shipmentq at d1,tnow-shipmentqenter,1:NEXT(66$);


;
;
;     Model statements for module:  Assign 47
;
66$           ASSIGN:        dock_no=1:
                             leave the dock1 queue=tnow:NEXT(26$);

26$           DUPLICATE:     ordersize-1,25$:NEXT(25$);


;
;
;     Model statements for module:  Assign 24
;
25$           ASSIGN:        picked=0:
                             k=1:
                             totalstock=product1stock+product2stock+product3stock:
                             totalexceedingstock=stock1+stock2+stock3:NEXT(27$);

27$           WHILE:         (picked==0):NEXT(28$);


;
;
;     Model statements for module:  Decide 17
;
28$           BRANCH,        1:
                             If,( LocationA(k,1) <> 0  )  &&  ( type == LocationA(k,2) ),1110$,Yes:
                             Else,1111$,Yes;
1110$         ASSIGN:        Decide 17.NumberOut True=Decide 17.NumberOut True + 1:NEXT(29$);

1111$         ASSIGN:        Decide 17.NumberOut False=Decide 17.NumberOut False + 1:NEXT(33$);

29$           ASSIGN:        LocationA(k,1)=LocationA(k,1)-1:NEXT(30$);


;
;
;     Model statements for module:  Assign 27
;
30$           ASSIGN:        picked=1:
                             Locationtype=1:NEXT(31$);


;
;
;     Model statements for module:  Decide 18
;
31$           BRANCH,        1:
                             If,LocationA(k,1)==0,1112$,Yes:
                             Else,1113$,Yes;
1112$         ASSIGN:        Decide 18.NumberOut True=Decide 18.NumberOut True + 1:NEXT(32$);

1113$         ASSIGN:        Decide 18.NumberOut False=Decide 18.NumberOut False + 1:NEXT(63$);

32$           ASSIGN:        LocationA(k,2)=0:NEXT(63$);


;
;
;     Model statements for module:  Decide 57
;
63$           BRANCH,        1:
                             If,dock_no==1,1114$,Yes:
                             Else,1115$,Yes;
1114$         ASSIGN:        Decide 57.NumberOut True=Decide 57.NumberOut True + 1:NEXT(64$);

1115$         ASSIGN:        Decide 57.NumberOut False=Decide 57.NumberOut False + 1:NEXT(65$);


;
;
;     Model statements for module:  Assign 43
;
64$           ASSIGN:        width9=
                             (LocationA(k,1)==4)*0+(LocationA(k,1)==3)*1+(LocationA(k,1)==2)*2+(LocationA(k,1)==1)*3+(LocationA(k,1)==0)*4:
                             distance9=20+k*1+width9:NEXT(38$);

38$           ENDWHILE:NEXT(42$);


;
;
;     Model statements for module:  Decide 22
;
42$           BRANCH,        1:
                             If,dock_no==1,1116$,Yes:
                             Else,1117$,Yes;
1116$         ASSIGN:        Decide 22.NumberOut True=Decide 22.NumberOut True + 1:NEXT(40$);

1117$         ASSIGN:        Decide 22.NumberOut False=Decide 22.NumberOut False + 1:NEXT(50$);


;
;
;     Model statements for module:  Seize 9
;
40$           QUEUE,         Seizing a forklift from forklift set at shipment ramp1.Queue;
              SEIZE,         2,Other:
                             SELECT(TransSet3,CYC, trans_no3),1:NEXT(1119$);

1119$         DELAY:         0.0,,VA:NEXT(537$);


;
;
;     Model statements for module:  Decide 233
;
537$          BRANCH,        1:
                             If,departure from stock exceeded<>1,1120$,Yes:
                             Else,1121$,Yes;
1120$         ASSIGN:        Decide 233.NumberOut True=Decide 233.NumberOut True + 1:NEXT(43$);

1121$         ASSIGN:        Decide 233.NumberOut False=Decide 233.NumberOut False + 1:NEXT(538$);


;
;
;     Model statements for module:  Delay 5
;
43$           DELAY:         
                             SecondsToBaseTime((Locationtype==1)*((34.521+(0.915*distance9)+NORM(0,7.3))*2)+(Locationtype==2)*((34.521+(0.915*distance11)+NORM(0,7.3))*2)+(Locationtype==3)*((34.521+(0.915*distance13)+NORM(0,7.3))*2)+(Locationtype==4)*((34.521+(0.915*distance15)+NORM(0,7.3))*2)),,
                             Other:NEXT(93$);

93$           RELEASE:       Member(TransSet3, trans_no3),1;
494$          ASSIGN:        #product from d1=#product from d1+1:NEXT(189$);


;
;
;     Model statements for module:  Decide 123
;
189$          BRANCH,        1:
                             If,#product from d1==8,1122$,Yes:
                             Else,1123$,Yes;
1122$         ASSIGN:        Decide 123.NumberOut True=Decide 123.NumberOut True + 1:NEXT(225$);

1123$         ASSIGN:        Decide 123.NumberOut False=Decide 123.NumberOut False + 1:NEXT(502$);

225$          TALLY:         time for pickup to d1,tnow-leave the dock1 queue,1;
495$          ASSIGN:        #product from d1=#product from d1-#product from d1:NEXT(547$);


;
;
;     Model statements for module:  Decide 238
;
547$          BRANCH,        1:
                             If,((STATE(Trans1)==INACTIVE_RES)&&(STATE(Trans5)==INACTIVE_RES)),1124$,Yes:
                             Else,1125$,Yes;
1124$         ASSIGN:        Decide 238.NumberOut True=Decide 238.NumberOut True + 1:NEXT(86$);

1125$         ASSIGN:        Decide 238.NumberOut False=Decide 238.NumberOut False + 1:NEXT(548$);


;
;
;     Model statements for module:  Process 5
;
86$           ASSIGN:        Loading from dock1.NumberIn=Loading from dock1.NumberIn + 1:
                             Loading from dock1.WIP=Loading from dock1.WIP+1;
1155$         STACK,         1:Save:NEXT(1129$);

1129$         QUEUE,         Loading from dock1.Queue;
1128$         SEIZE,         1,VA:
                             SELECT(TransSet7,SNB, ),1:NEXT(1127$);

1127$         DELAY:         SecondsToBaseTime(UNIF(62,83,63)),,VA:NEXT(1170$);

1170$         ASSIGN:        Loading from dock1.WaitTime=Loading from dock1.WaitTime + Diff.WaitTime;
1134$         TALLY:         Loading from dock1.WaitTimePerEntity,Diff.WaitTime,1;
1136$         TALLY:         Loading from dock1.TotalTimePerEntity,Diff.StartTime,1;
1160$         ASSIGN:        Loading from dock1.VATime=Loading from dock1.VATime + Diff.VATime;
1161$         TALLY:         Loading from dock1.VATimePerEntity,Diff.VATime,1;
1126$         RELEASE:       SELECT(TransSet7,LAST),1;
1175$         STACK,         1:Destroy:NEXT(1174$);

1174$         ASSIGN:        Loading from dock1.NumberOut=Loading from dock1.NumberOut + 1:
                             Loading from dock1.WIP=Loading from dock1.WIP-1:NEXT(215$);

215$          ASSIGN:        #loaded1=#loaded1+1:NEXT(46$);


;
;
;     Model statements for module:  Decide 38
;
46$           BRANCH,        1:
                             If,#loaded1==ordersize,1177$,Yes:
                             Else,1178$,Yes;
1177$         ASSIGN:        Decide 38.NumberOut True=Decide 38.NumberOut True + 1:NEXT(44$);

1178$         ASSIGN:        Decide 38.NumberOut False=Decide 38.NumberOut False + 1:NEXT(45$);


;
;
;     Model statements for module:  Release 13
;
44$           RELEASE:       dock1,1:NEXT(216$);

216$          ASSIGN:        #loaded1=#loaded1-#loaded1;
227$          TALLY:         time in system from d1 for shipment,tnow-shipmentqenter,1;
293$          COUNT:         # of trucks that are in system  more than 60 minutes from d1,(tnow-shipmentqenter)>60;
489$          COUNT:         # of trucks that are in system  more than 45 minutes from d1,(tnow-shipmentqenter)>45;
294$          COUNT:         #of trucks that are from d1,1;
492$          TALLY:         time for loading at d1,tnow-starting time of loading at d1,1:NEXT(45$);


;
;
;     Model statements for module:  Dispose 13
;
45$           ASSIGN:        Dispose 13.NumberOut=Dispose 13.NumberOut + 1;
1179$         DISPOSE:       Yes;


;
;
;     Model statements for module:  Process 80
;
548$          ASSIGN:        Loading from dock1_1.NumberIn=Loading from dock1_1.NumberIn + 1:
                             Loading from dock1_1.WIP=Loading from dock1_1.WIP+1;
1209$         STACK,         1:Save:NEXT(1183$);

1183$         QUEUE,         Loading from dock1_1.Queue;
1182$         SEIZE,         1,VA:
                             SELECT(TransSet4,SNB, ),1:NEXT(1181$);

1181$         DELAY:         SecondsToBaseTime(UNIF(62,83,63)),,VA:NEXT(1224$);

1224$         ASSIGN:        Loading from dock1_1.WaitTime=Loading from dock1_1.WaitTime + Diff.WaitTime;
1188$         TALLY:         Loading from dock1_1.WaitTimePerEntity,Diff.WaitTime,1;
1190$         TALLY:         Loading from dock1_1.TotalTimePerEntity,Diff.StartTime,1;
1214$         ASSIGN:        Loading from dock1_1.VATime=Loading from dock1_1.VATime + Diff.VATime;
1215$         TALLY:         Loading from dock1_1.VATimePerEntity,Diff.VATime,1;
1180$         RELEASE:       SELECT(TransSet4,LAST),1;
1229$         STACK,         1:Destroy:NEXT(1228$);

1228$         ASSIGN:        Loading from dock1_1.NumberOut=Loading from dock1_1.NumberOut + 1:
                             Loading from dock1_1.WIP=Loading from dock1_1.WIP-1:NEXT(215$);

502$          ASSIGN:        #product being loaded from d1=#product being loaded from d1+1:NEXT(504$);


;
;
;     Model statements for module:  Decide 219
;
504$          BRANCH,        1:
                             If,#product being loaded from d1==1,1231$,Yes:
                             Else,1232$,Yes;
1231$         ASSIGN:        Decide 219.NumberOut True=Decide 219.NumberOut True + 1:NEXT(503$);

1232$         ASSIGN:        Decide 219.NumberOut False=Decide 219.NumberOut False + 1:NEXT(505$);


;
;
;     Model statements for module:  Assign 177
;
503$          ASSIGN:        starting time of loading at d1=tnow:NEXT(547$);


;
;
;     Model statements for module:  Decide 220
;
505$          BRANCH,        1:
                             If,#product being loaded from d1==7,1233$,Yes:
                             Else,1234$,Yes;
1233$         ASSIGN:        Decide 220.NumberOut True=Decide 220.NumberOut True + 1:NEXT(506$);

1234$         ASSIGN:        Decide 220.NumberOut False=Decide 220.NumberOut False + 1:NEXT(547$);

506$          ASSIGN:        #product being loaded from d1=#product being loaded from d1-#product being loaded from d1
                             :NEXT(547$);


;
;
;     Model statements for module:  Delay 17
;
538$          DELAY:         SecondsToBaseTime(((34.521+(0.915*averagedistance)+Norm(0,7.3))*2)),,Other:NEXT(93$);


;
;
;     Model statements for module:  Seize 12
;
50$           QUEUE,         Seizing a forklift from forklift set at shipment ramp2.Queue;
              SEIZE,         2,Other:
                             SELECT(TransSet6,CYC, trans_no6),1:NEXT(1236$);

1236$         DELAY:         0.0,,VA:NEXT(539$);


;
;
;     Model statements for module:  Decide 234
;
539$          BRANCH,        1:
                             If,departure from stock exceeded<>1,1237$,Yes:
                             Else,1238$,Yes;
1237$         ASSIGN:        Decide 234.NumberOut True=Decide 234.NumberOut True + 1:NEXT(52$);

1238$         ASSIGN:        Decide 234.NumberOut False=Decide 234.NumberOut False + 1:NEXT(540$);


;
;
;     Model statements for module:  Delay 8
;
52$           DELAY:         
                             SecondsToBaseTime((Locationtype==1)*((34.521+(0.915*distance10)+NORM(0,7.3))*2)+(Locationtype==2)*((34.521+(0.915*distance12)+NORM(0,7.3))*2)+(Locationtype==3)*((34.521+(0.915*distance14)+NORM(0,7.3))*2)+(Locationtype==4)*((34.521+(0.915*distance16)+NORM(0,7.3))*2)),,
                             Other:NEXT(53$);

53$           RELEASE:       Member(TransSet6, Trans_No6),1;
496$          ASSIGN:        #product from d2=#product from d2+1:NEXT(188$);


;
;
;     Model statements for module:  Decide 122
;
188$          BRANCH,        1:
                             If,#product from d2==8,1239$,Yes:
                             Else,1240$,Yes;
1239$         ASSIGN:        Decide 122.NumberOut True=Decide 122.NumberOut True + 1:NEXT(226$);

1240$         ASSIGN:        Decide 122.NumberOut False=Decide 122.NumberOut False + 1:NEXT(498$);

226$          TALLY:         time for pickup to d2,tnow-leave the dock2 queue,1;
497$          ASSIGN:        #product from d2=#product from d2-#product from d2:NEXT(549$);


;
;
;     Model statements for module:  Decide 239
;
549$          BRANCH,        1:
                             If,((STATE(Trans3)==INACTIVE_RES)&&(STATE(Trans5)==INACTIVE_RES)),1241$,Yes:
                             Else,1242$,Yes;
1241$         ASSIGN:        Decide 239.NumberOut True=Decide 239.NumberOut True + 1:NEXT(77$);

1242$         ASSIGN:        Decide 239.NumberOut False=Decide 239.NumberOut False + 1:NEXT(550$);


;
;
;     Model statements for module:  Process 4
;
77$           ASSIGN:        Loading from dock2.NumberIn=Loading from dock2.NumberIn + 1:
                             Loading from dock2.WIP=Loading from dock2.WIP+1;
1272$         STACK,         1:Save:NEXT(1246$);

1246$         QUEUE,         Loading from dock2.Queue;
1245$         SEIZE,         1,VA:
                             SELECT(TransSet8,SNB, ),1:NEXT(1244$);

1244$         DELAY:         SecondsToBaseTime(UNIF(62,83,64)),,VA:NEXT(1287$);

1287$         ASSIGN:        Loading from dock2.WaitTime=Loading from dock2.WaitTime + Diff.WaitTime;
1251$         TALLY:         Loading from dock2.WaitTimePerEntity,Diff.WaitTime,1;
1253$         TALLY:         Loading from dock2.TotalTimePerEntity,Diff.StartTime,1;
1277$         ASSIGN:        Loading from dock2.VATime=Loading from dock2.VATime + Diff.VATime;
1278$         TALLY:         Loading from dock2.VATimePerEntity,Diff.VATime,1;
1243$         RELEASE:       SELECT(TransSet8,LAST),1;
1292$         STACK,         1:Destroy:NEXT(1291$);

1291$         ASSIGN:        Loading from dock2.NumberOut=Loading from dock2.NumberOut + 1:
                             Loading from dock2.WIP=Loading from dock2.WIP-1:NEXT(217$);

217$          ASSIGN:        #loaded2=#loaded2+1:NEXT(47$);


;
;
;     Model statements for module:  Decide 39
;
47$           BRANCH,        1:
                             If,#loaded2==ordersize,1294$,Yes:
                             Else,1295$,Yes;
1294$         ASSIGN:        Decide 39.NumberOut True=Decide 39.NumberOut True + 1:NEXT(48$);

1295$         ASSIGN:        Decide 39.NumberOut False=Decide 39.NumberOut False + 1:NEXT(49$);


;
;
;     Model statements for module:  Release 14
;
48$           RELEASE:       dock2,1:NEXT(218$);

218$          ASSIGN:        #loaded2=#loaded2-#loaded2;
228$          TALLY:         time in system from d2 for shipment,tnow-shipmentqenter,1;
295$          COUNT:         # of trucks that are in system  more than 60 minutes from d2,(tnow-shipmentqenter)>60;
490$          COUNT:         # of trucks that are in system  more than 45 minutes from d2,(tnow-shipmentqenter)>45;
296$          COUNT:         #of trucks that are from d2,1;
493$          TALLY:         time for loading at d2,tnow-starting time of loading at d2,1:NEXT(49$);


;
;
;     Model statements for module:  Dispose 14
;
49$           ASSIGN:        Dispose 14.NumberOut=Dispose 14.NumberOut + 1;
1296$         DISPOSE:       Yes;


;
;
;     Model statements for module:  Process 81
;
550$          ASSIGN:        Loading from dock2_1.NumberIn=Loading from dock2_1.NumberIn + 1:
                             Loading from dock2_1.WIP=Loading from dock2_1.WIP+1;
1326$         STACK,         1:Save:NEXT(1300$);

1300$         QUEUE,         Loading from dock2_1.Queue;
1299$         SEIZE,         1,VA:
                             SELECT(TransSet5,SNB, ),1:NEXT(1298$);

1298$         DELAY:         SecondsToBaseTime(UNIF(62,83,64)),,VA:NEXT(1341$);

1341$         ASSIGN:        Loading from dock2_1.WaitTime=Loading from dock2_1.WaitTime + Diff.WaitTime;
1305$         TALLY:         Loading from dock2_1.WaitTimePerEntity,Diff.WaitTime,1;
1307$         TALLY:         Loading from dock2_1.TotalTimePerEntity,Diff.StartTime,1;
1331$         ASSIGN:        Loading from dock2_1.VATime=Loading from dock2_1.VATime + Diff.VATime;
1332$         TALLY:         Loading from dock2_1.VATimePerEntity,Diff.VATime,1;
1297$         RELEASE:       SELECT(TransSet5,LAST),1;
1346$         STACK,         1:Destroy:NEXT(1345$);

1345$         ASSIGN:        Loading from dock2_1.NumberOut=Loading from dock2_1.NumberOut + 1:
                             Loading from dock2_1.WIP=Loading from dock2_1.WIP-1:NEXT(217$);

498$          ASSIGN:        #product being loaded from d2=#product being loaded from d2+1:NEXT(499$);


;
;
;     Model statements for module:  Decide 217
;
499$          BRANCH,        1:
                             If,#product being loaded from d2==1,1348$,Yes:
                             Else,1349$,Yes;
1348$         ASSIGN:        Decide 217.NumberOut True=Decide 217.NumberOut True + 1:NEXT(491$);

1349$         ASSIGN:        Decide 217.NumberOut False=Decide 217.NumberOut False + 1:NEXT(500$);


;
;
;     Model statements for module:  Assign 176
;
491$          ASSIGN:        starting time of loading at d2=tnow:NEXT(549$);


;
;
;     Model statements for module:  Decide 218
;
500$          BRANCH,        1:
                             If,#product being loaded from d2==7,1350$,Yes:
                             Else,1351$,Yes;
1350$         ASSIGN:        Decide 218.NumberOut True=Decide 218.NumberOut True + 1:NEXT(501$);

1351$         ASSIGN:        Decide 218.NumberOut False=Decide 218.NumberOut False + 1:NEXT(549$);

501$          ASSIGN:        #product being loaded from d2=#product being loaded from d2-#product being loaded from d2
                             :NEXT(549$);


;
;
;     Model statements for module:  Delay 21
;
540$          DELAY:         SecondsToBaseTime(((34.521+(0.915*averagedistance)+Norm(0,7.3))*2)),,Other:NEXT(53$);


;
;
;     Model statements for module:  Assign 44
;
65$           ASSIGN:        width10=
                             (LocationA(k,1)==4)*0+(LocationA(k,1)==3)*1+(LocationA(k,1)==2)*2+(LocationA(k,1)==1)*3+(LocationA(k,1)==0)*4:
                             distance10=23+k*1+width10:NEXT(38$);


;
;
;     Model statements for module:  Decide 19
;
33$           BRANCH,        1:
                             If,( LocationB(k,1) <> 0 )  &&  ( type == LocationB(k,2) ),1352$,Yes:
                             Else,1353$,Yes;
1352$         ASSIGN:        Decide 19.NumberOut True=Decide 19.NumberOut True + 1:NEXT(34$);

1353$         ASSIGN:        Decide 19.NumberOut False=Decide 19.NumberOut False + 1:NEXT(78$);

34$           ASSIGN:        LocationB(k,1)=LocationB(k,1)-1:NEXT(35$);


;
;
;     Model statements for module:  Assign 30
;
35$           ASSIGN:        picked=1:
                             Locationtype=2:NEXT(36$);


;
;
;     Model statements for module:  Decide 21
;
36$           BRANCH,        1:
                             If,LocationB(k,1)==0,1354$,Yes:
                             Else,1355$,Yes;
1354$         ASSIGN:        Decide 21.NumberOut True=Decide 21.NumberOut True + 1:NEXT(37$);

1355$         ASSIGN:        Decide 21.NumberOut False=Decide 21.NumberOut False + 1:NEXT(515$);

37$           ASSIGN:        LocationB(k,2)=0:NEXT(515$);


;
;
;     Model statements for module:  Decide 225
;
515$          BRANCH,        1:
                             If,dock_no==1,1356$,Yes:
                             Else,1357$,Yes;
1356$         ASSIGN:        Decide 225.NumberOut True=Decide 225.NumberOut True + 1:NEXT(516$);

1357$         ASSIGN:        Decide 225.NumberOut False=Decide 225.NumberOut False + 1:NEXT(517$);


;
;
;     Model statements for module:  Assign 191
;
516$          ASSIGN:        width11=
                             (LocationB(k,1)==4)*0+(LocationB(k,1)==3)*1+(LocationB(k,1)==2)*2+(LocationB(k,1)==1)*3+(LocationB(k,1)==0)*4:
                             distance11=20+k*1+width11:NEXT(38$);


;
;
;     Model statements for module:  Assign 192
;
517$          ASSIGN:        width12=
                             (LocationB(k,1)==4)*0+(LocationB(k,1)==3)*1+(LocationB(k,1)==2)*2+(LocationB(k,1)==1)*3+(LocationB(k,1)==0)*4:
                             distance12=23+k*1+width12:NEXT(38$);


;
;
;     Model statements for module:  Decide 82
;
78$           BRANCH,        1:
                             If,( LocationC(k,1) <> 0 )  &&  ( type == LocationC(k,2) ),1358$,Yes:
                             Else,1359$,Yes;
1358$         ASSIGN:        Decide 82.NumberOut True=Decide 82.NumberOut True + 1:NEXT(79$);

1359$         ASSIGN:        Decide 82.NumberOut False=Decide 82.NumberOut False + 1:NEXT(153$);

79$           ASSIGN:        LocationC(k,1)=LocationC(k,1)-1:NEXT(80$);


;
;
;     Model statements for module:  Assign 53
;
80$           ASSIGN:        picked=1:
                             Locationtype=3:NEXT(81$);


;
;
;     Model statements for module:  Decide 83
;
81$           BRANCH,        1:
                             If,LocationC(k,1)==0,1360$,Yes:
                             Else,1361$,Yes;
1360$         ASSIGN:        Decide 83.NumberOut True=Decide 83.NumberOut True + 1:NEXT(82$);

1361$         ASSIGN:        Decide 83.NumberOut False=Decide 83.NumberOut False + 1:NEXT(83$);

82$           ASSIGN:        LocationC(k,2)=0:NEXT(83$);


;
;
;     Model statements for module:  Decide 84
;
83$           BRANCH,        1:
                             If,dock_no==1,1362$,Yes:
                             Else,1363$,Yes;
1362$         ASSIGN:        Decide 84.NumberOut True=Decide 84.NumberOut True + 1:NEXT(84$);

1363$         ASSIGN:        Decide 84.NumberOut False=Decide 84.NumberOut False + 1:NEXT(85$);


;
;
;     Model statements for module:  Assign 55
;
84$           ASSIGN:        width13=
                             (LocationC(k,1)==7)*0+(LocationC(k,1)==6)*1+(LocationC(k,1)==5)*2+(LocationC(k,1)==4)*3+(LocationC(k,1)==3)*4+(LocationC(k,1)==2)*5+(LocationC(k,1)==1)*6+(LocationC(k,1)==0)*7:
                             distance13=13+k*1+width13:NEXT(38$);


;
;
;     Model statements for module:  Assign 56
;
85$           ASSIGN:        width14=
                             (LocationC(k,1)==7)*0+(LocationC(k,1)==6)*1+(LocationC(k,1)==5)*2+(LocationC(k,1)==4)*3+(LocationC(k,1)==3)*4+(LocationC(k,1)==2)*5+(LocationC(k,1)==1)*6+(LocationC(k,1)==0)*7:
                             distance14=14+k*1+width14:NEXT(38$);


;
;
;     Model statements for module:  Decide 111
;
153$          BRANCH,        1:
                             If,( LocationD(k,1) <> 0 )  &&  ( type == LocationD(k,2) ),1364$,Yes:
                             Else,1365$,Yes;
1364$         ASSIGN:        Decide 111.NumberOut True=Decide 111.NumberOut True + 1:NEXT(154$);

1365$         ASSIGN:        Decide 111.NumberOut False=Decide 111.NumberOut False + 1:NEXT(39$);

154$          ASSIGN:        LocationD(k,1)=LocationD(k,1)-1:NEXT(155$);


;
;
;     Model statements for module:  Assign 77
;
155$          ASSIGN:        picked=1:
                             Locationtype=4:NEXT(156$);


;
;
;     Model statements for module:  Decide 112
;
156$          BRANCH,        1:
                             If,LocationD(k,1)==0,1366$,Yes:
                             Else,1367$,Yes;
1366$         ASSIGN:        Decide 112.NumberOut True=Decide 112.NumberOut True + 1:NEXT(157$);

1367$         ASSIGN:        Decide 112.NumberOut False=Decide 112.NumberOut False + 1:NEXT(518$);

157$          ASSIGN:        LocationD(k,2)=0:NEXT(518$);


;
;
;     Model statements for module:  Decide 226
;
518$          BRANCH,        1:
                             If,dock_no==1,1368$,Yes:
                             Else,1369$,Yes;
1368$         ASSIGN:        Decide 226.NumberOut True=Decide 226.NumberOut True + 1:NEXT(519$);

1369$         ASSIGN:        Decide 226.NumberOut False=Decide 226.NumberOut False + 1:NEXT(520$);


;
;
;     Model statements for module:  Assign 193
;
519$          ASSIGN:        width15=
                             (LocationD(k,1)==7)*0+(LocationD(k,1)==6)*1+(LocationD(k,1)==5)*2+(LocationD(k,1)==4)*3+(LocationD(k,1)==3)*4+(LocationD(k,1)==2)*5+(LocationD(k,1)==1)*6+(LocationD(k,1)==0)*7:
                             distance15=13+k*1+width15:NEXT(38$);


;
;
;     Model statements for module:  Assign 194
;
520$          ASSIGN:        width16=
                             (LocationC(k,1)==7)*0+(LocationC(k,1)==6)*1+(LocationC(k,1)==5)*2+(LocationC(k,1)==4)*3+(LocationC(k,1)==3)*4+(LocationC(k,1)==2)*5+(LocationC(k,1)==1)*6+(LocationC(k,1)==0)*7:
                             distance16=14+k*1+width16:NEXT(38$);


;
;
;     Model statements for module:  Assign 32
;
39$           ASSIGN:        k=k+1:NEXT(531$);


;
;
;     Model statements for module:  Decide 231
;
531$          BRANCH,        1:
                             If,k<=231,1370$,Yes:
                             Else,1371$,Yes;
1370$         ASSIGN:        Decide 231.NumberOut True=Decide 231.NumberOut True + 1:NEXT(38$);

1371$         ASSIGN:        Decide 231.NumberOut False=Decide 231.NumberOut False + 1:NEXT(536$);


;
;
;     Model statements for module:  Assign 197
;
536$          ASSIGN:        departure from stock exceeded=1:NEXT(532$);


;
;
;     Model statements for module:  Decide 232
;
532$          BRANCH,        1:
                             If,type==1,533$,Yes:
                             If,type==2,534$,Yes:
                             Else,535$,Yes;
535$          ASSIGN:        stock3=stock3-1:NEXT(42$);

533$          ASSIGN:        stock1=stock1-1:NEXT(42$);

534$          ASSIGN:        stock2=stock2-1:NEXT(42$);

298$          TALLY:         time in shipmentq at d2,tnow-shipmentqenter,1:NEXT(67$);


;
;
;     Model statements for module:  Assign 48
;
67$           ASSIGN:        dock_no=2:
                             leave the dock2 queue=tnow:NEXT(26$);


;
;
;     Model statements for module:  Record 32
;
160$          COUNT:         #runaway,1:NEXT(159$);


;
;
;     Model statements for module:  Dispose 21
;
159$          ASSIGN:        Dispose 21.NumberOut=Dispose 21.NumberOut + 1;
1374$         DISPOSE:       Yes;


;
;
;     Model statements for module:  Decide 118
;
168$          BRANCH,        1:
                             If,product1stock>=safety stock,1375$,Yes:
                             Else,1376$,Yes;
1375$         ASSIGN:        Decide 118.NumberOut True=Decide 118.NumberOut True + 1:NEXT(219$);

1376$         ASSIGN:        Decide 118.NumberOut False=Decide 118.NumberOut False + 1:NEXT(160$);

219$          COUNT:         dispatchatruck,1:NEXT(24$);


;
;
;     Model statements for module:  Decide 119
;
169$          BRANCH,        1:
                             If,product2stock>=safety stock,1377$,Yes:
                             Else,1378$,Yes;
1377$         ASSIGN:        Decide 119.NumberOut True=Decide 119.NumberOut True + 1:NEXT(220$);

1378$         ASSIGN:        Decide 119.NumberOut False=Decide 119.NumberOut False + 1:NEXT(160$);

220$          COUNT:         dispatchbtruck,1:NEXT(24$);


;
;
;     Model statements for module:  Dispose 20
;
108$          ASSIGN:        Dispose 20.NumberOut=Dispose 20.NumberOut + 1;
1379$         DISPOSE:       Yes;


;
;
;     Model statements for module:  Assign 73
;
134$          ASSIGN:        departureb2# c1=disc(0.663,0,0.707,1,0.761,2,0.853,3,0.891,4,0.946,5,0.973,6,0.995,7,1,9,98)
                             :NEXT(138$);


;
;
;     Model statements for module:  Decide 106
;
138$          BRANCH,        1:
                             If,departureb2# c1==0,108$,Yes:
                             If,departureb2# c1==1,139$,Yes:
                             Else,140$,Yes;

;
;
;     Model statements for module:  Separate 10
;
140$          DUPLICATE,     100 - 50:
                             departureb2# c1-1,1384$,50:NEXT(1383$);

1383$         ASSIGN:        Separate 10.NumberOut Orig=Separate 10.NumberOut Orig + 1:NEXT(139$);

1384$         ASSIGN:        Separate 10.NumberOut Dup=Separate 10.NumberOut Dup + 1:NEXT(139$);


;
;
;     Model statements for module:  Process 15
;
139$          ASSIGN:        Process 15.NumberIn=Process 15.NumberIn + 1:
                             Process 15.WIP=Process 15.WIP+1;
1414$         STACK,         1:Save:NEXT(1388$);

1388$         QUEUE,         Process 15.Queue;
1387$         SEIZE,         2,VA:
                             Resource 9,1:NEXT(1386$);

1386$         DELAY:         HoursToBaseTime(expo(14/departureb2# c1,34)),,VA:NEXT(1429$);

1429$         ASSIGN:        Process 15.WaitTime=Process 15.WaitTime + Diff.WaitTime;
1393$         TALLY:         Process 15.WaitTimePerEntity,Diff.WaitTime,1;
1395$         TALLY:         Process 15.TotalTimePerEntity,Diff.StartTime,1;
1419$         ASSIGN:        Process 15.VATime=Process 15.VATime + Diff.VATime;
1420$         TALLY:         Process 15.VATimePerEntity,Diff.VATime,1;
1385$         RELEASE:       Resource 9,1;
1434$         STACK,         1:Destroy:NEXT(1433$);

1433$         ASSIGN:        Process 15.NumberOut=Process 15.NumberOut + 1:
                             Process 15.WIP=Process 15.WIP-1:NEXT(90$);


;
;
;     Model statements for module:  Create 7
;

1436$         CREATE,        1,MinutesToBaseTime(0.0001),Entity sc1ship# c1:MinutesToBaseTime(1440):NEXT(1437$);

1437$         ASSIGN:        Create for shipment c shift1 c1.NumberOut=Create for shipment c shift1 c1.NumberOut + 1:NEXT(141$);


;
;
;     Model statements for module:  Decide 107
;
141$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),1440$,Yes:
                             Else,1441$,Yes;
1440$         ASSIGN:        Decide 107.NumberOut True=Decide 107.NumberOut True + 1:NEXT(142$);

1441$         ASSIGN:        Decide 107.NumberOut False=Decide 107.NumberOut False + 1:NEXT(143$);


;
;
;     Model statements for module:  Assign 74
;
142$          ASSIGN:        departurec1# c1=disc(0.842,0,0.891,1,0.924,2,0.935,3,0.962,4,0.978,5,0.995,6,1,7,99):NEXT(144$);


;
;
;     Model statements for module:  Decide 108
;
144$          BRANCH,        1:
                             If,departurec1# c1==0,108$,Yes:
                             If,departurec1# c1==1,145$,Yes:
                             Else,146$,Yes;

;
;
;     Model statements for module:  Separate 11
;
146$          DUPLICATE,     100 - 50:
                             departurec1# c1-1,1446$,50:NEXT(1445$);

1445$         ASSIGN:        Separate 11.NumberOut Orig=Separate 11.NumberOut Orig + 1:NEXT(145$);

1446$         ASSIGN:        Separate 11.NumberOut Dup=Separate 11.NumberOut Dup + 1:NEXT(145$);


;
;
;     Model statements for module:  Process 16
;
145$          ASSIGN:        Process 16.NumberIn=Process 16.NumberIn + 1:
                             Process 16.WIP=Process 16.WIP+1;
1476$         STACK,         1:Save:NEXT(1450$);

1450$         QUEUE,         Process 16.Queue;
1449$         SEIZE,         2,VA:
                             Resource 10,1:NEXT(1448$);

1448$         DELAY:         HoursToBaseTime(expo(10/departurec1# c1,35)),,VA:NEXT(1491$);

1491$         ASSIGN:        Process 16.WaitTime=Process 16.WaitTime + Diff.WaitTime;
1455$         TALLY:         Process 16.WaitTimePerEntity,Diff.WaitTime,1;
1457$         TALLY:         Process 16.TotalTimePerEntity,Diff.StartTime,1;
1481$         ASSIGN:        Process 16.VATime=Process 16.VATime + Diff.VATime;
1482$         TALLY:         Process 16.VATimePerEntity,Diff.VATime,1;
1447$         RELEASE:       Resource 10,1;
1496$         STACK,         1:Destroy:NEXT(1495$);

1495$         ASSIGN:        Process 16.NumberOut=Process 16.NumberOut + 1:
                             Process 16.WIP=Process 16.WIP-1:NEXT(91$);


;
;
;     Model statements for module:  Assign 61
;
91$           ASSIGN:        type=3:NEXT(158$);


;
;
;     Model statements for module:  Assign 75
;
143$          ASSIGN:        departurec2# c1=disc(0.723,0,0.804,1,0.870,2,0.908,3,0.940,4,0.989,5,1,6,100):NEXT(147$);


;
;
;     Model statements for module:  Decide 109
;
147$          BRANCH,        1:
                             If,departurec2# c1==0,108$,Yes:
                             If,departurec2# c1==1,148$,Yes:
                             Else,149$,Yes;

;
;
;     Model statements for module:  Separate 12
;
149$          DUPLICATE,     100 - 50:
                             departurec2# c1-1,1502$,50:NEXT(1501$);

1501$         ASSIGN:        Separate 12.NumberOut Orig=Separate 12.NumberOut Orig + 1:NEXT(148$);

1502$         ASSIGN:        Separate 12.NumberOut Dup=Separate 12.NumberOut Dup + 1:NEXT(148$);


;
;
;     Model statements for module:  Process 17
;
148$          ASSIGN:        Process 17.NumberIn=Process 17.NumberIn + 1:
                             Process 17.WIP=Process 17.WIP+1;
1532$         STACK,         1:Save:NEXT(1506$);

1506$         QUEUE,         Process 17.Queue;
1505$         SEIZE,         2,VA:
                             Resource 11,1:NEXT(1504$);

1504$         DELAY:         HoursToBaseTime(expo(14/departurec2# c1,36)),,VA:NEXT(1547$);

1547$         ASSIGN:        Process 17.WaitTime=Process 17.WaitTime + Diff.WaitTime;
1511$         TALLY:         Process 17.WaitTimePerEntity,Diff.WaitTime,1;
1513$         TALLY:         Process 17.TotalTimePerEntity,Diff.StartTime,1;
1537$         ASSIGN:        Process 17.VATime=Process 17.VATime + Diff.VATime;
1538$         TALLY:         Process 17.VATimePerEntity,Diff.VATime,1;
1503$         RELEASE:       Resource 11,1;
1552$         STACK,         1:Destroy:NEXT(1551$);

1551$         ASSIGN:        Process 17.NumberOut=Process 17.NumberOut + 1:
                             Process 17.WIP=Process 17.WIP-1:NEXT(91$);


;
;
;     Model statements for module:  Create 9
;

1554$         CREATE,        1,HoursToBaseTime(0.0),Entity 1:HoursToBaseTime(24):NEXT(1555$);

1555$         ASSIGN:        Create 9.NumberOut=Create 9.NumberOut + 1:NEXT(98$);


;
;
;     Model statements for module:  Assign 64
;
98$           ASSIGN:        day=day+1:NEXT(99$);


;
;
;     Model statements for module:  Dispose 17
;
99$           ASSIGN:        Dispose 17.NumberOut=Dispose 17.NumberOut + 1;
1558$         DISPOSE:       Yes;


;
;
;     Model statements for module:  Create 11
;

1559$         CREATE,        1,MinutesToBaseTime(600.0001),Entity ra2rec# c1:MinutesToBaseTime(1440):NEXT(1560$);

1560$         ASSIGN:        Create for receiving a shift2 c1.NumberOut=Create for receiving a shift2 c1.NumberOut + 1
                             :NEXT(100$);


;
;
;     Model statements for module:  Decide 93
;
100$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),1563$,Yes:
                             Else,1564$,Yes;
1563$         ASSIGN:        Decide 93.NumberOut True=Decide 93.NumberOut True + 1:NEXT(92$);

1564$         ASSIGN:        Decide 93.NumberOut False=Decide 93.NumberOut False + 1:NEXT(101$);


;
;
;     Model statements for module:  Assign 62
;
92$           ASSIGN:        receipta1# c1=
                             disc(0.772,0,0.777,2,0.788,4,0.810,5,0.821,6,0.832,7,0.870,8,0.886,9,0.891,10,0.908,11,0.924,12,0.935,13,0.946,14,0.951,16,0.962,17,0.973,18,0.978,22,0.984,23,0.995,27,1,32,65)
                             :NEXT(94$);


;
;
;     Model statements for module:  Decide 92
;
94$           BRANCH,        1:
                             If,receipta1# c1==0,95$,Yes:
                             If,receipta1# c1==1,96$,Yes:
                             Else,97$,Yes;

;
;
;     Model statements for module:  Separate 1
;
97$           DUPLICATE,     100 - 50:
                             receipta1# c1-1,1569$,50:NEXT(1568$);

1568$         ASSIGN:        Separate 1.NumberOut Orig=Separate 1.NumberOut Orig + 1:NEXT(96$);

1569$         ASSIGN:        Separate 1.NumberOut Dup=Separate 1.NumberOut Dup + 1:NEXT(96$);


;
;
;     Model statements for module:  Process 6
;
96$           ASSIGN:        Process 6.NumberIn=Process 6.NumberIn + 1:
                             Process 6.WIP=Process 6.WIP+1;
1599$         STACK,         1:Save:NEXT(1573$);

1573$         QUEUE,         Process 6.Queue;
1572$         SEIZE,         2,VA:
                             Resource 1,1:NEXT(1571$);

1571$         DELAY:         HoursToBaseTime(expo(10/receipta1# c1,1)),,VA:NEXT(1614$);

1614$         ASSIGN:        Process 6.WaitTime=Process 6.WaitTime + Diff.WaitTime;
1578$         TALLY:         Process 6.WaitTimePerEntity,Diff.WaitTime,1;
1580$         TALLY:         Process 6.TotalTimePerEntity,Diff.StartTime,1;
1604$         ASSIGN:        Process 6.VATime=Process 6.VATime + Diff.VATime;
1605$         TALLY:         Process 6.VATimePerEntity,Diff.VATime,1;
1570$         RELEASE:       Resource 1,1;
1619$         STACK,         1:Destroy:NEXT(1618$);

1618$         ASSIGN:        Process 6.NumberOut=Process 6.NumberOut + 1:
                             Process 6.WIP=Process 6.WIP-1:NEXT(0$);


;
;
;     Model statements for module:  Assign 1
;
0$            ASSIGN:        producttype=1:NEXT(180$);


;
;
;     Model statements for module:  Assign 65
;
101$          ASSIGN:        receipta2# c2=
                             disc(0.810,0,0.821,1,0.832,2,0.848,4,0.853,5,0.864,6,0.880,7,0.886,8,0.891,9,0.902,10,0.913,11,0.918,12,0.924,13,0.929,14,0.940,15,0.946,16,0.962,18,0.973,20,0.978,23,0.984,26,0.989,28,0.995,29,1,36,66)
                             :NEXT(102$);


;
;
;     Model statements for module:  Decide 94
;
102$          BRANCH,        1:
                             If,receipta2# c1==0,95$,Yes:
                             If,receipta2# c1==1,113$,Yes:
                             Else,103$,Yes;

;
;
;     Model statements for module:  Separate 2
;
103$          DUPLICATE,     100 - 50:
                             receipta2# c1-1,1625$,50:NEXT(1624$);

1624$         ASSIGN:        Separate 2.NumberOut Orig=Separate 2.NumberOut Orig + 1:NEXT(113$);

1625$         ASSIGN:        Separate 2.NumberOut Dup=Separate 2.NumberOut Dup + 1:NEXT(113$);


;
;
;     Model statements for module:  Process 8
;
113$          ASSIGN:        Process 8.NumberIn=Process 8.NumberIn + 1:
                             Process 8.WIP=Process 8.WIP+1;
1655$         STACK,         1:Save:NEXT(1629$);

1629$         QUEUE,         Process 8.Queue;
1628$         SEIZE,         2,VA:
                             Resource 2,1:NEXT(1627$);

1627$         DELAY:         HoursToBaseTime(expo(14/receipta2# c1,2)),,VA:NEXT(1670$);

1670$         ASSIGN:        Process 8.WaitTime=Process 8.WaitTime + Diff.WaitTime;
1634$         TALLY:         Process 8.WaitTimePerEntity,Diff.WaitTime,1;
1636$         TALLY:         Process 8.TotalTimePerEntity,Diff.StartTime,1;
1660$         ASSIGN:        Process 8.VATime=Process 8.VATime + Diff.VATime;
1661$         TALLY:         Process 8.VATimePerEntity,Diff.VATime,1;
1626$         RELEASE:       Resource 2,1;
1675$         STACK,         1:Destroy:NEXT(1674$);

1674$         ASSIGN:        Process 8.NumberOut=Process 8.NumberOut + 1:
                             Process 8.WIP=Process 8.WIP-1:NEXT(0$);


;
;
;     Model statements for module:  Create 15
;

1677$         CREATE,        1,MinutesToBaseTime(600.0001),Entity sa2ship# c1:MinutesToBaseTime(1440):NEXT(1678$);

1678$         ASSIGN:        Create for shipmenta shift2 c1.NumberOut=Create for shipmenta shift2 c1.NumberOut + 1:NEXT(105$);


;
;
;     Model statements for module:  Decide 95
;
105$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),1681$,Yes:
                             Else,1682$,Yes;
1681$         ASSIGN:        Decide 95.NumberOut True=Decide 95.NumberOut True + 1:NEXT(104$);

1682$         ASSIGN:        Decide 95.NumberOut False=Decide 95.NumberOut False + 1:NEXT(106$);


;
;
;     Model statements for module:  Assign 66
;
104$          ASSIGN:        departurea1# c1=disc(0.332,0,0.386,1,0.5,2,0.707,3,0.859,4,0.946,5,0.984,6,0.989,7,0.995,8,1,10,95)
                             :NEXT(107$);


;
;
;     Model statements for module:  Decide 96
;
107$          BRANCH,        1:
                             If,departurea1# c1==0,108$,Yes:
                             If,departurea1# c1==1,109$,Yes:
                             Else,110$,Yes;

;
;
;     Model statements for module:  Separate 3
;
110$          DUPLICATE,     100 - 50:
                             departurea1# c1-1,1687$,50:NEXT(1686$);

1686$         ASSIGN:        Separate 3.NumberOut Orig=Separate 3.NumberOut Orig + 1:NEXT(109$);

1687$         ASSIGN:        Separate 3.NumberOut Dup=Separate 3.NumberOut Dup + 1:NEXT(109$);


;
;
;     Model statements for module:  Process 7
;
109$          ASSIGN:        Process 7.NumberIn=Process 7.NumberIn + 1:
                             Process 7.WIP=Process 7.WIP+1;
1717$         STACK,         1:Save:NEXT(1691$);

1691$         QUEUE,         Process 7.Queue;
1690$         SEIZE,         2,VA:
                             Resource 3,1:NEXT(1689$);

1689$         DELAY:         HoursToBaseTime(expo(10/departurea1# c1,31)),,VA:NEXT(1732$);

1732$         ASSIGN:        Process 7.WaitTime=Process 7.WaitTime + Diff.WaitTime;
1696$         TALLY:         Process 7.WaitTimePerEntity,Diff.WaitTime,1;
1698$         TALLY:         Process 7.TotalTimePerEntity,Diff.StartTime,1;
1722$         ASSIGN:        Process 7.VATime=Process 7.VATime + Diff.VATime;
1723$         TALLY:         Process 7.VATimePerEntity,Diff.VATime,1;
1688$         RELEASE:       Resource 3,1;
1737$         STACK,         1:Destroy:NEXT(1736$);

1736$         ASSIGN:        Process 7.NumberOut=Process 7.NumberOut + 1:
                             Process 7.WIP=Process 7.WIP-1:NEXT(89$);


;
;
;     Model statements for module:  Assign 59
;
89$           ASSIGN:        type=1:NEXT(158$);


;
;
;     Model statements for module:  Assign 67
;
106$          ASSIGN:        departurea2# c1=disc(0.315,0,0.408,1,0.505,2,0.685,3,0.837,4,0.929,5,0.989,6,1,7,96):NEXT(111$);


;
;
;     Model statements for module:  Decide 97
;
111$          BRANCH,        1:
                             If,departurea2# c1==0,108$,Yes:
                             If,departurea2# c1==1,114$,Yes:
                             Else,112$,Yes;

;
;
;     Model statements for module:  Separate 4
;
112$          DUPLICATE,     100 - 50:
                             departurea2# c1-1,1743$,50:NEXT(1742$);

1742$         ASSIGN:        Separate 4.NumberOut Orig=Separate 4.NumberOut Orig + 1:NEXT(114$);

1743$         ASSIGN:        Separate 4.NumberOut Dup=Separate 4.NumberOut Dup + 1:NEXT(114$);


;
;
;     Model statements for module:  Process 9
;
114$          ASSIGN:        Process 9.NumberIn=Process 9.NumberIn + 1:
                             Process 9.WIP=Process 9.WIP+1;
1773$         STACK,         1:Save:NEXT(1747$);

1747$         QUEUE,         Process 9.Queue;
1746$         SEIZE,         2,VA:
                             Resource 4,1:NEXT(1745$);

1745$         DELAY:         HoursToBaseTime(expo(14/departurea2# c1,32)),,VA:NEXT(1788$);

1788$         ASSIGN:        Process 9.WaitTime=Process 9.WaitTime + Diff.WaitTime;
1752$         TALLY:         Process 9.WaitTimePerEntity,Diff.WaitTime,1;
1754$         TALLY:         Process 9.TotalTimePerEntity,Diff.StartTime,1;
1778$         ASSIGN:        Process 9.VATime=Process 9.VATime + Diff.VATime;
1779$         TALLY:         Process 9.VATimePerEntity,Diff.VATime,1;
1744$         RELEASE:       Resource 4,1;
1793$         STACK,         1:Destroy:NEXT(1792$);

1792$         ASSIGN:        Process 9.NumberOut=Process 9.NumberOut + 1:
                             Process 9.WIP=Process 9.WIP-1:NEXT(89$);


;
;
;     Model statements for module:  Create 16
;

1795$         CREATE,        1,MinutesToBaseTime(600.0001),Entity rb2rec# c1:MinutesToBaseTime(1440):NEXT(1796$);

1796$         ASSIGN:        Create for receiving b shift2 c1.NumberOut=Create for receiving b shift2 c1.NumberOut + 1
                             :NEXT(115$);


;
;
;     Model statements for module:  Create 17
;

1799$         CREATE,        1,MinutesToBaseTime(600.0001),Entity rc2rec# c1:MinutesToBaseTime(1440):NEXT(1800$);

1800$         ASSIGN:        Create for receiving c shift2 c1.NumberOut=Create for receiving c shift2 c1.NumberOut + 1
                             :NEXT(123$);


;
;
;     Model statements for module:  Create 19
;

1803$         CREATE,        1,MinutesToBaseTime(600.0001),Entity sb2ship# c1:MinutesToBaseTime(1440):NEXT(1804$);

1804$         ASSIGN:        Create for shipment b shift2 c1.NumberOut=Create for shipment b shift2 c1.NumberOut + 1:NEXT(132$);


176$          CREATE,        1,TFIN:,1:NEXT(177$);

177$          WRITE,         rqueueoutput:
                             
                             tavg(time in receiptq at d1),tavg(time in receiptq at d2),davg(statistic 1),davg(statistic 2),davg(statistic 3),dmax(statistic 1), dmax(statistic 2),dmax(statistic 3),davg(statistic 4),davg(statistic 5),davg(statistic 6),dmax(statistic 4),dmax(statistic 5),dmax(statistic 6),davg(statistic 7),dmax(statistic 7),davg(statistic 8),dmax(statistic 8);
178$          DISPOSE:       No;


185$          CREATE,        1,TFIN:,1:NEXT(186$);

186$          WRITE,         rtimeinsystem:
                             
                             tavg(time in system from d1), tavg(time in system from d2),tavg(time for putaway from d1),tavg(time for putaway from d2);
187$          DISPOSE:       No;


190$          CREATE,        1,TFIN::NEXT(191$);

191$          WRITE,         utilizationf1:
                             FSTAND(forklift1,1),FSTAND(forklift1,2),FSTAND(forklift1,4);
192$          DISPOSE:       No;


193$          CREATE,        1,TFIN::NEXT(194$);

194$          WRITE,         utilizationf2:
                             FSTAND(forklift2,1),FSTAND(forklift2,2),FSTAND(forklift2,4);
195$          DISPOSE:       No;


196$          CREATE,        1,TFIN::NEXT(197$);

197$          WRITE,         utilizationf3:
                             FSTAND(forklift3,1),FSTAND(forklift3,2),FSTAND(forklift3,4);
198$          DISPOSE:       No;


199$          CREATE,        1,TFIN::NEXT(200$);

200$          WRITE,         utilizationf5:
                             FSTAND(forklift5,1),FSTAND(forklift5,2),FSTAND(forklift5,4);
201$          DISPOSE:       No;


202$          CREATE,        1,TFIN::NEXT(203$);

203$          WRITE,         utilizationf6:
                             FSTAND(forklift6,1),FSTAND(forklift6,2),FSTAND(forklift6,4);
204$          DISPOSE:       No;


205$          CREATE,        1,TFIN::NEXT(206$);

206$          WRITE,         utilizationd1:
                             FSTAND(dock 1,1),FSTAND(dock 1,2),FSTAND(dock 1,4);
207$          DISPOSE:       No;


208$          CREATE,        1,TFIN::NEXT(209$);

209$          WRITE,         utilizationd2:
                             FSTAND(dock 2,1),FSTAND(dock 2,2),FSTAND(dock 2,4);
210$          DISPOSE:       No;


222$          CREATE,        1,TFIN:,1:NEXT(223$);

223$          WRITE,         squeueoutput:
                             
                             tavg(time in shipmentq at d1),tavg(time in shipmentq at d2),nc(dispatchatruck),nc(dispatchbtruck),nc(dispatchctruck),nc(#runaway),tavg(time for pickup to d1),tavg(time for pickup to d2),tavg(time for loading at d1),tavg(time for loading at d2);
224$          DISPOSE:       No;


229$          CREATE,        1,TFIN:,1:NEXT(230$);

230$          WRITE,         stimeinsystem:
                             
                             tavg(time in system from d1 for shipment),nc(# of trucks that are in system  more than 60 minutes from d1),nc(#of trucks that are from d1),tavg(time in system from d2 for shipment),nc(# of trucks that are in system  more than 60 minutes from d2),nc(#of trucks that are from d2),nc(# of trucks that are in system  more than 45 minutes from d1),nc(# of trucks that are in system  more than 45 minutes from d2);
231$          DISPOSE:       No;


;
;
;     Model statements for module:  Create 24
;

1807$         CREATE,        1,MinutesToBaseTime(0.0001),Entity rb1rec# c2:MinutesToBaseTime(1440):NEXT(1808$);

1808$         ASSIGN:        Create for receiving b shift1 c2.NumberOut=Create for receiving b shift1 c2.NumberOut + 1
                             :NEXT(245$);


;
;
;     Model statements for module:  Decide 127
;
245$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),1811$,Yes:
                             Else,1812$,Yes;
1811$         ASSIGN:        Decide 127.NumberOut True=Decide 127.NumberOut True + 1:NEXT(542$);

1812$         ASSIGN:        Decide 127.NumberOut False=Decide 127.NumberOut False + 1:NEXT(246$);


;
;
;     Model statements for module:  Assign 199
;
542$          ASSIGN:        receiptb1# c2=
                             disc(0.924,0,0.929,1,0.940,2,0.946,6,0.951,8,0.962,9,0.973,15,0.978,16,0.984,17,0.989,18,0.995,19,1,21,73)
                             :NEXT(247$);


;
;
;     Model statements for module:  Decide 128
;
247$          BRANCH,        1:
                             If,receiptb1# c2==0,237$,Yes:
                             If,receiptb1# c2==1,248$,Yes:
                             Else,249$,Yes;

;
;
;     Model statements for module:  Separate 15
;
249$          DUPLICATE,     100 - 50:
                             receiptb1# c2-1,1817$,50:NEXT(1816$);

1816$         ASSIGN:        Separate 15.NumberOut Orig=Separate 15.NumberOut Orig + 1:NEXT(248$);

1817$         ASSIGN:        Separate 15.NumberOut Dup=Separate 15.NumberOut Dup + 1:NEXT(248$);


;
;
;     Model statements for module:  Process 20
;
248$          ASSIGN:        Process 20.NumberIn=Process 20.NumberIn + 1:
                             Process 20.WIP=Process 20.WIP+1;
1847$         STACK,         1:Save:NEXT(1821$);

1821$         QUEUE,         Process 20.Queue;
1820$         SEIZE,         2,VA:
                             Resource 14,1:NEXT(1819$);

1819$         DELAY:         HoursToBaseTime(expo(10/receiptb1# c2,9)),,VA:NEXT(1862$);

1862$         ASSIGN:        Process 20.WaitTime=Process 20.WaitTime + Diff.WaitTime;
1826$         TALLY:         Process 20.WaitTimePerEntity,Diff.WaitTime,1;
1828$         TALLY:         Process 20.TotalTimePerEntity,Diff.StartTime,1;
1852$         ASSIGN:        Process 20.VATime=Process 20.VATime + Diff.VATime;
1853$         TALLY:         Process 20.VATimePerEntity,Diff.VATime,1;
1818$         RELEASE:       Resource 14,1;
1867$         STACK,         1:Destroy:NEXT(1866$);

1866$         ASSIGN:        Process 20.NumberOut=Process 20.NumberOut + 1:
                             Process 20.WIP=Process 20.WIP-1:NEXT(233$);


;
;
;     Model statements for module:  Assign 83
;
233$          ASSIGN:        producttype=2:NEXT(180$);


;
;
;     Model statements for module:  Dispose 22
;
237$          ASSIGN:        Dispose 22.NumberOut=Dispose 22.NumberOut + 1;
1869$         DISPOSE:       Yes;


;
;
;     Model statements for module:  Assign 88
;
246$          ASSIGN:        receiptb2# c2=
                             disc(0.929,0,0.935,1,0.946,7,0.957,8,0.967,12,0.973,15,0.978,17,0.984,19,0.989,21,0.995,27,1,28,74)
                             :NEXT(250$);


;
;
;     Model statements for module:  Decide 129
;
250$          BRANCH,        1:
                             If,receiptb2# c2==0,237$,Yes:
                             If,receiptb2# c2==1,251$,Yes:
                             Else,252$,Yes;

;
;
;     Model statements for module:  Separate 16
;
252$          DUPLICATE,     100 - 50:
                             receiptb2# c2-1,1874$,50:NEXT(1873$);

1873$         ASSIGN:        Separate 16.NumberOut Orig=Separate 16.NumberOut Orig + 1:NEXT(251$);

1874$         ASSIGN:        Separate 16.NumberOut Dup=Separate 16.NumberOut Dup + 1:NEXT(251$);


;
;
;     Model statements for module:  Process 21
;
251$          ASSIGN:        Process 21.NumberIn=Process 21.NumberIn + 1:
                             Process 21.WIP=Process 21.WIP+1;
1904$         STACK,         1:Save:NEXT(1878$);

1878$         QUEUE,         Process 21.Queue;
1877$         SEIZE,         2,VA:
                             Resource 15,1:NEXT(1876$);

1876$         DELAY:         HoursToBaseTime(expo(14/receiptb2# c2,10)),,VA:NEXT(1919$);

1919$         ASSIGN:        Process 21.WaitTime=Process 21.WaitTime + Diff.WaitTime;
1883$         TALLY:         Process 21.WaitTimePerEntity,Diff.WaitTime,1;
1885$         TALLY:         Process 21.TotalTimePerEntity,Diff.StartTime,1;
1909$         ASSIGN:        Process 21.VATime=Process 21.VATime + Diff.VATime;
1910$         TALLY:         Process 21.VATimePerEntity,Diff.VATime,1;
1875$         RELEASE:       Resource 15,1;
1924$         STACK,         1:Destroy:NEXT(1923$);

1923$         ASSIGN:        Process 21.NumberOut=Process 21.NumberOut + 1:
                             Process 21.WIP=Process 21.WIP-1:NEXT(233$);


;
;
;     Model statements for module:  Create 25
;

1926$         CREATE,        1,MinutesToBaseTime(0.0001),Entity rc1rec# c2:MinutesToBaseTime(1440):NEXT(1927$);

1927$         ASSIGN:        Create for receiving c shift1 c2.NumberOut=Create for receiving c shift1 c2.NumberOut + 1
                             :NEXT(253$);


;
;
;     Model statements for module:  Decide 130
;
253$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),1930$,Yes:
                             Else,1931$,Yes;
1930$         ASSIGN:        Decide 130.NumberOut True=Decide 130.NumberOut True + 1:NEXT(254$);

1931$         ASSIGN:        Decide 130.NumberOut False=Decide 130.NumberOut False + 1:NEXT(255$);


;
;
;     Model statements for module:  Assign 89
;
254$          ASSIGN:        receiptc1# c2=disc(0.848,0,0.859,1,0.880,2,0.902,3,0.935,4,0.962,5,0.973,6,0.989,7,0.995,8,1,10,75)
                             :NEXT(256$);


;
;
;     Model statements for module:  Decide 131
;
256$          BRANCH,        1:
                             If,receiptc1# c2==0,237$,Yes:
                             If,receiptc1# c2==1,257$,Yes:
                             Else,258$,Yes;

;
;
;     Model statements for module:  Separate 17
;
258$          DUPLICATE,     100 - 50:
                             receiptc1# c2-1,1936$,50:NEXT(1935$);

1935$         ASSIGN:        Separate 17.NumberOut Orig=Separate 17.NumberOut Orig + 1:NEXT(257$);

1936$         ASSIGN:        Separate 17.NumberOut Dup=Separate 17.NumberOut Dup + 1:NEXT(257$);


;
;
;     Model statements for module:  Process 22
;
257$          ASSIGN:        Process 22.NumberIn=Process 22.NumberIn + 1:
                             Process 22.WIP=Process 22.WIP+1;
1966$         STACK,         1:Save:NEXT(1940$);

1940$         QUEUE,         Process 22.Queue;
1939$         SEIZE,         2,VA:
                             Resource 16,1:NEXT(1938$);

1938$         DELAY:         HoursToBaseTime(expo(10/receiptc1# c2,11)),,VA:NEXT(1981$);

1981$         ASSIGN:        Process 22.WaitTime=Process 22.WaitTime + Diff.WaitTime;
1945$         TALLY:         Process 22.WaitTimePerEntity,Diff.WaitTime,1;
1947$         TALLY:         Process 22.TotalTimePerEntity,Diff.StartTime,1;
1971$         ASSIGN:        Process 22.VATime=Process 22.VATime + Diff.VATime;
1972$         TALLY:         Process 22.VATimePerEntity,Diff.VATime,1;
1937$         RELEASE:       Resource 16,1;
1986$         STACK,         1:Destroy:NEXT(1985$);

1985$         ASSIGN:        Process 22.NumberOut=Process 22.NumberOut + 1:
                             Process 22.WIP=Process 22.WIP-1:NEXT(234$);


;
;
;     Model statements for module:  Assign 84
;
234$          ASSIGN:        producttype=3:NEXT(180$);


;
;
;     Model statements for module:  Assign 90
;
255$          ASSIGN:        receiptc2# c2=disc(0.848,0,0.864,1,0.875,2,0.913,3,0.946,4,0.973,5,0.989,6,0.995,8,1,10,76)
                             :NEXT(259$);


;
;
;     Model statements for module:  Decide 132
;
259$          BRANCH,        1:
                             If,receiptc2# c2==0,237$,Yes:
                             If,receiptc2# c2==1,260$,Yes:
                             Else,261$,Yes;

;
;
;     Model statements for module:  Separate 18
;
261$          DUPLICATE,     100 - 50:
                             receiptc2# c2-1,1992$,50:NEXT(1991$);

1991$         ASSIGN:        Separate 18.NumberOut Orig=Separate 18.NumberOut Orig + 1:NEXT(260$);

1992$         ASSIGN:        Separate 18.NumberOut Dup=Separate 18.NumberOut Dup + 1:NEXT(260$);


;
;
;     Model statements for module:  Process 23
;
260$          ASSIGN:        Process 23.NumberIn=Process 23.NumberIn + 1:
                             Process 23.WIP=Process 23.WIP+1;
2022$         STACK,         1:Save:NEXT(1996$);

1996$         QUEUE,         Process 23.Queue;
1995$         SEIZE,         2,VA:
                             Resource 17,1:NEXT(1994$);

1994$         DELAY:         HoursToBaseTime(expo(14/receiptc2# c2,12)),,VA:NEXT(2037$);

2037$         ASSIGN:        Process 23.WaitTime=Process 23.WaitTime + Diff.WaitTime;
2001$         TALLY:         Process 23.WaitTimePerEntity,Diff.WaitTime,1;
2003$         TALLY:         Process 23.TotalTimePerEntity,Diff.StartTime,1;
2027$         ASSIGN:        Process 23.VATime=Process 23.VATime + Diff.VATime;
2028$         TALLY:         Process 23.VATimePerEntity,Diff.VATime,1;
1993$         RELEASE:       Resource 17,1;
2042$         STACK,         1:Destroy:NEXT(2041$);

2041$         ASSIGN:        Process 23.NumberOut=Process 23.NumberOut + 1:
                             Process 23.WIP=Process 23.WIP-1:NEXT(234$);


;
;
;     Model statements for module:  Create 27
;

2044$         CREATE,        1,MinutesToBaseTime(600.0001),Entity ra2rec# c2:MinutesToBaseTime(1440):NEXT(2045$);

2045$         ASSIGN:        Create for receiving a shift2 c2.NumberOut=Create for receiving a shift2 c2.NumberOut + 1
                             :NEXT(240$);


;
;
;     Model statements for module:  Decide 125
;
240$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),2048$,Yes:
                             Else,2049$,Yes;
2048$         ASSIGN:        Decide 125.NumberOut True=Decide 125.NumberOut True + 1:NEXT(235$);

2049$         ASSIGN:        Decide 125.NumberOut False=Decide 125.NumberOut False + 1:NEXT(241$);


;
;
;     Model statements for module:  Assign 85
;
235$          ASSIGN:        receipta1# c2=
                             disc(0.772,0,0.777,2,0.788,4,0.810,5,0.821,6,0.832,7,0.870,8,0.886,9,0.891,10,0.908,11,0.924,12,0.935,13,0.946,14,0.951,16,0.962,17,0.973,18,0.978,22,0.984,23,0.995,27,1,32,71)
                             :NEXT(236$);


;
;
;     Model statements for module:  Decide 124
;
236$          BRANCH,        1:
                             If,receipta1# c2==0,237$,Yes:
                             If,receipta1# c2==1,238$,Yes:
                             Else,239$,Yes;

;
;
;     Model statements for module:  Separate 13
;
239$          DUPLICATE,     100 - 50:
                             receipta1# c2-1,2054$,50:NEXT(2053$);

2053$         ASSIGN:        Separate 13.NumberOut Orig=Separate 13.NumberOut Orig + 1:NEXT(238$);

2054$         ASSIGN:        Separate 13.NumberOut Dup=Separate 13.NumberOut Dup + 1:NEXT(238$);


;
;
;     Model statements for module:  Process 18
;
238$          ASSIGN:        Process 18.NumberIn=Process 18.NumberIn + 1:
                             Process 18.WIP=Process 18.WIP+1;
2084$         STACK,         1:Save:NEXT(2058$);

2058$         QUEUE,         Process 18.Queue;
2057$         SEIZE,         2,VA:
                             Resource 12,1:NEXT(2056$);

2056$         DELAY:         HoursToBaseTime(expo(10/receipta1# c2,7)),,VA:NEXT(2099$);

2099$         ASSIGN:        Process 18.WaitTime=Process 18.WaitTime + Diff.WaitTime;
2063$         TALLY:         Process 18.WaitTimePerEntity,Diff.WaitTime,1;
2065$         TALLY:         Process 18.TotalTimePerEntity,Diff.StartTime,1;
2089$         ASSIGN:        Process 18.VATime=Process 18.VATime + Diff.VATime;
2090$         TALLY:         Process 18.VATimePerEntity,Diff.VATime,1;
2055$         RELEASE:       Resource 12,1;
2104$         STACK,         1:Destroy:NEXT(2103$);

2103$         ASSIGN:        Process 18.NumberOut=Process 18.NumberOut + 1:
                             Process 18.WIP=Process 18.WIP-1:NEXT(232$);


;
;
;     Model statements for module:  Assign 82
;
232$          ASSIGN:        producttype=1:NEXT(180$);


;
;
;     Model statements for module:  Assign 86
;
241$          ASSIGN:        receipta2# c2=
                             disc(0.810,0,0.821,1,0.832,2,0.848,4,0.853,5,0.864,6,0.880,7,0.886,8,0.891,9,0.902,10,0.913,11,0.918,12,0.924,13,0.929,14,0.940,15,0.946,16,0.962,18,0.973,20,0.978,23,0.984,26,0.989,28,0.995,29,1,36,72)
                             :NEXT(242$);


;
;
;     Model statements for module:  Decide 126
;
242$          BRANCH,        1:
                             If,receipta2# c2==0,237$,Yes:
                             If,receipta2# c2==1,244$,Yes:
                             Else,243$,Yes;

;
;
;     Model statements for module:  Separate 14
;
243$          DUPLICATE,     100 - 50:
                             receipta2# c2-1,2110$,50:NEXT(2109$);

2109$         ASSIGN:        Separate 14.NumberOut Orig=Separate 14.NumberOut Orig + 1:NEXT(244$);

2110$         ASSIGN:        Separate 14.NumberOut Dup=Separate 14.NumberOut Dup + 1:NEXT(244$);


;
;
;     Model statements for module:  Process 19
;
244$          ASSIGN:        Process 19.NumberIn=Process 19.NumberIn + 1:
                             Process 19.WIP=Process 19.WIP+1;
2140$         STACK,         1:Save:NEXT(2114$);

2114$         QUEUE,         Process 19.Queue;
2113$         SEIZE,         2,VA:
                             Resource 13,1:NEXT(2112$);

2112$         DELAY:         HoursToBaseTime(expo(14/receipta2# c2,8)),,VA:NEXT(2155$);

2155$         ASSIGN:        Process 19.WaitTime=Process 19.WaitTime + Diff.WaitTime;
2119$         TALLY:         Process 19.WaitTimePerEntity,Diff.WaitTime,1;
2121$         TALLY:         Process 19.TotalTimePerEntity,Diff.StartTime,1;
2145$         ASSIGN:        Process 19.VATime=Process 19.VATime + Diff.VATime;
2146$         TALLY:         Process 19.VATimePerEntity,Diff.VATime,1;
2111$         RELEASE:       Resource 13,1;
2160$         STACK,         1:Destroy:NEXT(2159$);

2159$         ASSIGN:        Process 19.NumberOut=Process 19.NumberOut + 1:
                             Process 19.WIP=Process 19.WIP-1:NEXT(232$);


;
;
;     Model statements for module:  Create 28
;

2162$         CREATE,        1,MinutesToBaseTime(600.0001),Entity rb2rec# c2:MinutesToBaseTime(1440):NEXT(2163$);

2163$         ASSIGN:        Create for receiving b shift2 c2.NumberOut=Create for receiving b shift2 c2.NumberOut + 1
                             :NEXT(245$);


;
;
;     Model statements for module:  Create 29
;

2166$         CREATE,        1,MinutesToBaseTime(600.0001),Entity rc2rec# c2:MinutesToBaseTime(1440):NEXT(2167$);

2167$         ASSIGN:        Create for receiving c shift2 c2.NumberOut=Create for receiving c shift2 c2.NumberOut + 1
                             :NEXT(253$);


;
;
;     Model statements for module:  Create 39
;

2170$         CREATE,        1,MinutesToBaseTime(0.0001),Entity sb1ship# c2:MinutesToBaseTime(1440):NEXT(2171$);

2171$         ASSIGN:        Create for shipment b shift1 c2.NumberOut=Create for shipment b shift1 c2.NumberOut + 1:NEXT(275$);


;
;
;     Model statements for module:  Decide 145
;
275$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),2174$,Yes:
                             Else,2175$,Yes;
2174$         ASSIGN:        Decide 145.NumberOut True=Decide 145.NumberOut True + 1:NEXT(276$);

2175$         ASSIGN:        Decide 145.NumberOut False=Decide 145.NumberOut False + 1:NEXT(277$);


;
;
;     Model statements for module:  Assign 105
;
276$          ASSIGN:        departureb1# c2=disc(0.674,0,0.717,1,0.783,2,0.810,3,0.918,4,0.973,5,1,6,103):NEXT(278$);


;
;
;     Model statements for module:  Decide 146
;
278$          BRANCH,        1:
                             If,departureb1# c2==0,269$,Yes:
                             If,departureb1# c2==1,279$,Yes:
                             Else,280$,Yes;

;
;
;     Model statements for module:  Separate 27
;
280$          DUPLICATE,     100 - 50:
                             departureb1# c2-1,2180$,50:NEXT(2179$);

2179$         ASSIGN:        Separate 27.NumberOut Orig=Separate 27.NumberOut Orig + 1:NEXT(279$);

2180$         ASSIGN:        Separate 27.NumberOut Dup=Separate 27.NumberOut Dup + 1:NEXT(279$);


;
;
;     Model statements for module:  Process 32
;
279$          ASSIGN:        Process 32.NumberIn=Process 32.NumberIn + 1:
                             Process 32.WIP=Process 32.WIP+1;
2210$         STACK,         1:Save:NEXT(2184$);

2184$         QUEUE,         Process 32.Queue;
2183$         SEIZE,         2,VA:
                             Resource 20,1:NEXT(2182$);

2182$         DELAY:         HoursToBaseTime(expo(10/departureb1# c2,39)),,VA:NEXT(2225$);

2225$         ASSIGN:        Process 32.WaitTime=Process 32.WaitTime + Diff.WaitTime;
2189$         TALLY:         Process 32.WaitTimePerEntity,Diff.WaitTime,1;
2191$         TALLY:         Process 32.TotalTimePerEntity,Diff.StartTime,1;
2215$         ASSIGN:        Process 32.VATime=Process 32.VATime + Diff.VATime;
2216$         TALLY:         Process 32.VATimePerEntity,Diff.VATime,1;
2181$         RELEASE:       Resource 20,1;
2230$         STACK,         1:Destroy:NEXT(2229$);

2229$         ASSIGN:        Process 32.NumberOut=Process 32.NumberOut + 1:
                             Process 32.WIP=Process 32.WIP-1:NEXT(263$);


;
;
;     Model statements for module:  Assign 101
;
263$          ASSIGN:        type=2:NEXT(158$);


;
;
;     Model statements for module:  Dispose 24
;
269$          ASSIGN:        Dispose 24.NumberOut=Dispose 24.NumberOut + 1;
2232$         DISPOSE:       Yes;


;
;
;     Model statements for module:  Assign 106
;
277$          ASSIGN:        departureb2# c2=disc(0.663,0,0.707,1,0.761,2,0.853,3,0.891,4,0.946,5,0.973,6,0.995,7,1,9,104)
                             :NEXT(281$);


;
;
;     Model statements for module:  Decide 147
;
281$          BRANCH,        1:
                             If,departureb2# c2==0,269$,Yes:
                             If,departureb2# c2==1,282$,Yes:
                             Else,283$,Yes;

;
;
;     Model statements for module:  Separate 28
;
283$          DUPLICATE,     100 - 50:
                             departureb2# c2-1,2237$,50:NEXT(2236$);

2236$         ASSIGN:        Separate 28.NumberOut Orig=Separate 28.NumberOut Orig + 1:NEXT(282$);

2237$         ASSIGN:        Separate 28.NumberOut Dup=Separate 28.NumberOut Dup + 1:NEXT(282$);


;
;
;     Model statements for module:  Process 33
;
282$          ASSIGN:        Process 33.NumberIn=Process 33.NumberIn + 1:
                             Process 33.WIP=Process 33.WIP+1;
2267$         STACK,         1:Save:NEXT(2241$);

2241$         QUEUE,         Process 33.Queue;
2240$         SEIZE,         2,VA:
                             Resource 21,1:NEXT(2239$);

2239$         DELAY:         HoursToBaseTime(expo(14/departureb2# c2,40)),,VA:NEXT(2282$);

2282$         ASSIGN:        Process 33.WaitTime=Process 33.WaitTime + Diff.WaitTime;
2246$         TALLY:         Process 33.WaitTimePerEntity,Diff.WaitTime,1;
2248$         TALLY:         Process 33.TotalTimePerEntity,Diff.StartTime,1;
2272$         ASSIGN:        Process 33.VATime=Process 33.VATime + Diff.VATime;
2273$         TALLY:         Process 33.VATimePerEntity,Diff.VATime,1;
2238$         RELEASE:       Resource 21,1;
2287$         STACK,         1:Destroy:NEXT(2286$);

2286$         ASSIGN:        Process 33.NumberOut=Process 33.NumberOut + 1:
                             Process 33.WIP=Process 33.WIP-1:NEXT(263$);


;
;
;     Model statements for module:  Create 40
;

2289$         CREATE,        1,MinutesToBaseTime(0.0001),Entity sc1ship# c2:MinutesToBaseTime(1440):NEXT(2290$);

2290$         ASSIGN:        Create for shipment c shift1 c2.NumberOut=Create for shipment c shift1 c2.NumberOut + 1:NEXT(284$);


;
;
;     Model statements for module:  Decide 148
;
284$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),2293$,Yes:
                             Else,2294$,Yes;
2293$         ASSIGN:        Decide 148.NumberOut True=Decide 148.NumberOut True + 1:NEXT(285$);

2294$         ASSIGN:        Decide 148.NumberOut False=Decide 148.NumberOut False + 1:NEXT(286$);


;
;
;     Model statements for module:  Assign 107
;
285$          ASSIGN:        departurec1# c2=disc(0.842,0,0.891,1,0.924,2,0.935,3,0.962,4,0.978,5,0.995,6,1,7,105):NEXT(287$);


;
;
;     Model statements for module:  Decide 149
;
287$          BRANCH,        1:
                             If,departurec1# c2==0,269$,Yes:
                             If,departurec1# c2==1,288$,Yes:
                             Else,289$,Yes;

;
;
;     Model statements for module:  Separate 29
;
289$          DUPLICATE,     100 - 50:
                             departurec1# c2-1,2299$,50:NEXT(2298$);

2298$         ASSIGN:        Separate 29.NumberOut Orig=Separate 29.NumberOut Orig + 1:NEXT(288$);

2299$         ASSIGN:        Separate 29.NumberOut Dup=Separate 29.NumberOut Dup + 1:NEXT(288$);


;
;
;     Model statements for module:  Process 34
;
288$          ASSIGN:        Process 34.NumberIn=Process 34.NumberIn + 1:
                             Process 34.WIP=Process 34.WIP+1;
2329$         STACK,         1:Save:NEXT(2303$);

2303$         QUEUE,         Process 34.Queue;
2302$         SEIZE,         2,VA:
                             Resource 22,1:NEXT(2301$);

2301$         DELAY:         HoursToBaseTime(expo(10/departurec1# c2,41)),,VA:NEXT(2344$);

2344$         ASSIGN:        Process 34.WaitTime=Process 34.WaitTime + Diff.WaitTime;
2308$         TALLY:         Process 34.WaitTimePerEntity,Diff.WaitTime,1;
2310$         TALLY:         Process 34.TotalTimePerEntity,Diff.StartTime,1;
2334$         ASSIGN:        Process 34.VATime=Process 34.VATime + Diff.VATime;
2335$         TALLY:         Process 34.VATimePerEntity,Diff.VATime,1;
2300$         RELEASE:       Resource 22,1;
2349$         STACK,         1:Destroy:NEXT(2348$);

2348$         ASSIGN:        Process 34.NumberOut=Process 34.NumberOut + 1:
                             Process 34.WIP=Process 34.WIP-1:NEXT(264$);


;
;
;     Model statements for module:  Assign 102
;
264$          ASSIGN:        type=3:NEXT(158$);


;
;
;     Model statements for module:  Assign 108
;
286$          ASSIGN:        departurec2# c2=disc(0.723,0,0.804,1,0.870,2,0.908,3,0.940,4,0.989,5,1,6,106):NEXT(290$);


;
;
;     Model statements for module:  Decide 150
;
290$          BRANCH,        1:
                             If,departurec2# c2==0,269$,Yes:
                             If,departurec2# c2==1,291$,Yes:
                             Else,292$,Yes;

;
;
;     Model statements for module:  Separate 30
;
292$          DUPLICATE,     100 - 50:
                             departurec2# c2-1,2355$,50:NEXT(2354$);

2354$         ASSIGN:        Separate 30.NumberOut Orig=Separate 30.NumberOut Orig + 1:NEXT(291$);

2355$         ASSIGN:        Separate 30.NumberOut Dup=Separate 30.NumberOut Dup + 1:NEXT(291$);


;
;
;     Model statements for module:  Process 35
;
291$          ASSIGN:        Process 35.NumberIn=Process 35.NumberIn + 1:
                             Process 35.WIP=Process 35.WIP+1;
2385$         STACK,         1:Save:NEXT(2359$);

2359$         QUEUE,         Process 35.Queue;
2358$         SEIZE,         2,VA:
                             Resource 23,1:NEXT(2357$);

2357$         DELAY:         HoursToBaseTime(expo(14/departurec2# c2,42)),,VA:NEXT(2400$);

2400$         ASSIGN:        Process 35.WaitTime=Process 35.WaitTime + Diff.WaitTime;
2364$         TALLY:         Process 35.WaitTimePerEntity,Diff.WaitTime,1;
2366$         TALLY:         Process 35.TotalTimePerEntity,Diff.StartTime,1;
2390$         ASSIGN:        Process 35.VATime=Process 35.VATime + Diff.VATime;
2391$         TALLY:         Process 35.VATimePerEntity,Diff.VATime,1;
2356$         RELEASE:       Resource 23,1;
2405$         STACK,         1:Destroy:NEXT(2404$);

2404$         ASSIGN:        Process 35.NumberOut=Process 35.NumberOut + 1:
                             Process 35.WIP=Process 35.WIP-1:NEXT(264$);


;
;
;     Model statements for module:  Create 42
;

2407$         CREATE,        1,MinutesToBaseTime(600.0001),Entity sa2ship# c2:MinutesToBaseTime(1440):NEXT(2408$);

2408$         ASSIGN:        Create for shipmenta shift2 c2.NumberOut=Create for shipmenta shift2 c2.NumberOut + 1:NEXT(266$);


;
;
;     Model statements for module:  Decide 142
;
266$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),2411$,Yes:
                             Else,2412$,Yes;
2411$         ASSIGN:        Decide 142.NumberOut True=Decide 142.NumberOut True + 1:NEXT(265$);

2412$         ASSIGN:        Decide 142.NumberOut False=Decide 142.NumberOut False + 1:NEXT(267$);


;
;
;     Model statements for module:  Assign 103
;
265$          ASSIGN:        departurea1# c2=
                             disc(0.332,0,0.386,1,0.5,2,0.707,3,0.859,4,0.946,5,0.984,6,0.989,7,0.995,8,1,10,101):NEXT(268$);


;
;
;     Model statements for module:  Decide 143
;
268$          BRANCH,        1:
                             If,departurea1# c2==0,269$,Yes:
                             If,departurea1# c2==1,270$,Yes:
                             Else,271$,Yes;

;
;
;     Model statements for module:  Separate 25
;
271$          DUPLICATE,     100 - 50:
                             departurea1# c2-1,2417$,50:NEXT(2416$);

2416$         ASSIGN:        Separate 25.NumberOut Orig=Separate 25.NumberOut Orig + 1:NEXT(270$);

2417$         ASSIGN:        Separate 25.NumberOut Dup=Separate 25.NumberOut Dup + 1:NEXT(270$);


;
;
;     Model statements for module:  Process 30
;
270$          ASSIGN:        Process 30.NumberIn=Process 30.NumberIn + 1:
                             Process 30.WIP=Process 30.WIP+1;
2447$         STACK,         1:Save:NEXT(2421$);

2421$         QUEUE,         Process 30.Queue;
2420$         SEIZE,         2,VA:
                             Resource 18,1:NEXT(2419$);

2419$         DELAY:         HoursToBaseTime(expo(10/departurea1# c2,37)),,VA:NEXT(2462$);

2462$         ASSIGN:        Process 30.WaitTime=Process 30.WaitTime + Diff.WaitTime;
2426$         TALLY:         Process 30.WaitTimePerEntity,Diff.WaitTime,1;
2428$         TALLY:         Process 30.TotalTimePerEntity,Diff.StartTime,1;
2452$         ASSIGN:        Process 30.VATime=Process 30.VATime + Diff.VATime;
2453$         TALLY:         Process 30.VATimePerEntity,Diff.VATime,1;
2418$         RELEASE:       Resource 18,1;
2467$         STACK,         1:Destroy:NEXT(2466$);

2466$         ASSIGN:        Process 30.NumberOut=Process 30.NumberOut + 1:
                             Process 30.WIP=Process 30.WIP-1:NEXT(262$);


;
;
;     Model statements for module:  Assign 100
;
262$          ASSIGN:        type=1:NEXT(158$);


;
;
;     Model statements for module:  Assign 104
;
267$          ASSIGN:        departurea2# c2=disc(0.315,0,0.408,1,0.505,2,0.685,3,0.837,4,0.929,5,0.989,6,1,7,102):NEXT(272$);


;
;
;     Model statements for module:  Decide 144
;
272$          BRANCH,        1:
                             If,departurea2# c2==0,269$,Yes:
                             If,departurea2# c2==1,274$,Yes:
                             Else,273$,Yes;

;
;
;     Model statements for module:  Separate 26
;
273$          DUPLICATE,     100 - 50:
                             departurea2# c2-1,2473$,50:NEXT(2472$);

2472$         ASSIGN:        Separate 26.NumberOut Orig=Separate 26.NumberOut Orig + 1:NEXT(274$);

2473$         ASSIGN:        Separate 26.NumberOut Dup=Separate 26.NumberOut Dup + 1:NEXT(274$);


;
;
;     Model statements for module:  Process 31
;
274$          ASSIGN:        Process 31.NumberIn=Process 31.NumberIn + 1:
                             Process 31.WIP=Process 31.WIP+1;
2503$         STACK,         1:Save:NEXT(2477$);

2477$         QUEUE,         Process 31.Queue;
2476$         SEIZE,         2,VA:
                             Resource 19,1:NEXT(2475$);

2475$         DELAY:         HoursToBaseTime(expo(14/departurea2# c2,38)),,VA:NEXT(2518$);

2518$         ASSIGN:        Process 31.WaitTime=Process 31.WaitTime + Diff.WaitTime;
2482$         TALLY:         Process 31.WaitTimePerEntity,Diff.WaitTime,1;
2484$         TALLY:         Process 31.TotalTimePerEntity,Diff.StartTime,1;
2508$         ASSIGN:        Process 31.VATime=Process 31.VATime + Diff.VATime;
2509$         TALLY:         Process 31.VATimePerEntity,Diff.VATime,1;
2474$         RELEASE:       Resource 19,1;
2523$         STACK,         1:Destroy:NEXT(2522$);

2522$         ASSIGN:        Process 31.NumberOut=Process 31.NumberOut + 1:
                             Process 31.WIP=Process 31.WIP-1:NEXT(262$);


;
;
;     Model statements for module:  Create 43
;

2525$         CREATE,        1,MinutesToBaseTime(600.0001),Entity sb2ship# c2:MinutesToBaseTime(1440):NEXT(2526$);

2526$         ASSIGN:        Create for shipment b shift2 c2.NumberOut=Create for shipment b shift2 c2.NumberOut + 1:NEXT(275$);


;
;
;     Model statements for module:  Create 45
;

2529$         CREATE,        1,MinutesToBaseTime(0.0001),Entity rb1rec# c3:MinutesToBaseTime(1440):NEXT(2530$);

2530$         ASSIGN:        Create for receiving b shift1 c3.NumberOut=Create for receiving b shift1 c3.NumberOut + 1
                             :NEXT(316$);


;
;
;     Model statements for module:  Decide 157
;
316$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),2533$,Yes:
                             Else,2534$,Yes;
2533$         ASSIGN:        Decide 157.NumberOut True=Decide 157.NumberOut True + 1:NEXT(317$);

2534$         ASSIGN:        Decide 157.NumberOut False=Decide 157.NumberOut False + 1:NEXT(318$);


;
;
;     Model statements for module:  Assign 117
;
317$          ASSIGN:        receiptb1# c3=
                             disc(0.924,0,0.929,1,0.940,2,0.946,6,0.951,8,0.962,9,0.973,15,0.978,16,0.984,17,0.989,18,0.995,19,1,21,79)
                             :NEXT(319$);


;
;
;     Model statements for module:  Decide 158
;
319$          BRANCH,        1:
                             If,receiptb1# c3==0,308$,Yes:
                             If,receiptb1# c3==1,320$,Yes:
                             Else,321$,Yes;

;
;
;     Model statements for module:  Separate 33
;
321$          DUPLICATE,     100 - 50:
                             receiptb1# c3-1,2539$,50:NEXT(2538$);

2538$         ASSIGN:        Separate 33.NumberOut Orig=Separate 33.NumberOut Orig + 1:NEXT(320$);

2539$         ASSIGN:        Separate 33.NumberOut Dup=Separate 33.NumberOut Dup + 1:NEXT(320$);


;
;
;     Model statements for module:  Process 38
;
320$          ASSIGN:        Process 38.NumberIn=Process 38.NumberIn + 1:
                             Process 38.WIP=Process 38.WIP+1;
2569$         STACK,         1:Save:NEXT(2543$);

2543$         QUEUE,         Process 38.Queue;
2542$         SEIZE,         2,VA:
                             Resource 26,1:NEXT(2541$);

2541$         DELAY:         HoursToBaseTime(expo(10/receiptb1# c3,15)),,VA:NEXT(2584$);

2584$         ASSIGN:        Process 38.WaitTime=Process 38.WaitTime + Diff.WaitTime;
2548$         TALLY:         Process 38.WaitTimePerEntity,Diff.WaitTime,1;
2550$         TALLY:         Process 38.TotalTimePerEntity,Diff.StartTime,1;
2574$         ASSIGN:        Process 38.VATime=Process 38.VATime + Diff.VATime;
2575$         TALLY:         Process 38.VATimePerEntity,Diff.VATime,1;
2540$         RELEASE:       Resource 26,1;
2589$         STACK,         1:Destroy:NEXT(2588$);

2588$         ASSIGN:        Process 38.NumberOut=Process 38.NumberOut + 1:
                             Process 38.WIP=Process 38.WIP-1:NEXT(304$);


;
;
;     Model statements for module:  Assign 113
;
304$          ASSIGN:        producttype=2:NEXT(180$);


;
;
;     Model statements for module:  Dispose 25
;
308$          ASSIGN:        Dispose 25.NumberOut=Dispose 25.NumberOut + 1;
2591$         DISPOSE:       Yes;


;
;
;     Model statements for module:  Assign 118
;
318$          ASSIGN:        receiptb2# c3=
                             disc(0.929,0,0.935,1,0.946,7,0.957,8,0.967,12,0.973,15,0.978,17,0.984,19,0.989,21,0.995,27,1,28,80)
                             :NEXT(322$);


;
;
;     Model statements for module:  Decide 159
;
322$          BRANCH,        1:
                             If,receiptb2# c3==0,308$,Yes:
                             If,receiptb2# c3==1,323$,Yes:
                             Else,324$,Yes;

;
;
;     Model statements for module:  Separate 34
;
324$          DUPLICATE,     100 - 50:
                             receiptb2# c3-1,2596$,50:NEXT(2595$);

2595$         ASSIGN:        Separate 34.NumberOut Orig=Separate 34.NumberOut Orig + 1:NEXT(323$);

2596$         ASSIGN:        Separate 34.NumberOut Dup=Separate 34.NumberOut Dup + 1:NEXT(323$);


;
;
;     Model statements for module:  Process 39
;
323$          ASSIGN:        Process 39.NumberIn=Process 39.NumberIn + 1:
                             Process 39.WIP=Process 39.WIP+1;
2626$         STACK,         1:Save:NEXT(2600$);

2600$         QUEUE,         Process 39.Queue;
2599$         SEIZE,         2,VA:
                             Resource 27,1:NEXT(2598$);

2598$         DELAY:         HoursToBaseTime(expo(14/receiptb2# c3,16)),,VA:NEXT(2641$);

2641$         ASSIGN:        Process 39.WaitTime=Process 39.WaitTime + Diff.WaitTime;
2605$         TALLY:         Process 39.WaitTimePerEntity,Diff.WaitTime,1;
2607$         TALLY:         Process 39.TotalTimePerEntity,Diff.StartTime,1;
2631$         ASSIGN:        Process 39.VATime=Process 39.VATime + Diff.VATime;
2632$         TALLY:         Process 39.VATimePerEntity,Diff.VATime,1;
2597$         RELEASE:       Resource 27,1;
2646$         STACK,         1:Destroy:NEXT(2645$);

2645$         ASSIGN:        Process 39.NumberOut=Process 39.NumberOut + 1:
                             Process 39.WIP=Process 39.WIP-1:NEXT(304$);


;
;
;     Model statements for module:  Create 46
;

2648$         CREATE,        1,MinutesToBaseTime(0.0001),Entity rc1rec# c3:MinutesToBaseTime(1440):NEXT(2649$);

2649$         ASSIGN:        Create for receiving c shift1 c3.NumberOut=Create for receiving c shift1 c3.NumberOut + 1
                             :NEXT(325$);


;
;
;     Model statements for module:  Decide 160
;
325$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),2652$,Yes:
                             Else,2653$,Yes;
2652$         ASSIGN:        Decide 160.NumberOut True=Decide 160.NumberOut True + 1:NEXT(326$);

2653$         ASSIGN:        Decide 160.NumberOut False=Decide 160.NumberOut False + 1:NEXT(327$);


;
;
;     Model statements for module:  Assign 119
;
326$          ASSIGN:        receiptc1# c3=disc(0.848,0,0.859,1,0.880,2,0.902,3,0.935,4,0.962,5,0.973,6,0.989,7,0.995,8,1,10,81)
                             :NEXT(328$);


;
;
;     Model statements for module:  Decide 161
;
328$          BRANCH,        1:
                             If,receiptc1# c3==0,308$,Yes:
                             If,receiptc1# c3==1,329$,Yes:
                             Else,330$,Yes;

;
;
;     Model statements for module:  Separate 35
;
330$          DUPLICATE,     100 - 50:
                             receiptc1# c3-1,2658$,50:NEXT(2657$);

2657$         ASSIGN:        Separate 35.NumberOut Orig=Separate 35.NumberOut Orig + 1:NEXT(329$);

2658$         ASSIGN:        Separate 35.NumberOut Dup=Separate 35.NumberOut Dup + 1:NEXT(329$);


;
;
;     Model statements for module:  Process 40
;
329$          ASSIGN:        Process 40.NumberIn=Process 40.NumberIn + 1:
                             Process 40.WIP=Process 40.WIP+1;
2688$         STACK,         1:Save:NEXT(2662$);

2662$         QUEUE,         Process 40.Queue;
2661$         SEIZE,         2,VA:
                             Resource 28,1:NEXT(2660$);

2660$         DELAY:         HoursToBaseTime(expo(10/receiptc1# c3,17)),,VA:NEXT(2703$);

2703$         ASSIGN:        Process 40.WaitTime=Process 40.WaitTime + Diff.WaitTime;
2667$         TALLY:         Process 40.WaitTimePerEntity,Diff.WaitTime,1;
2669$         TALLY:         Process 40.TotalTimePerEntity,Diff.StartTime,1;
2693$         ASSIGN:        Process 40.VATime=Process 40.VATime + Diff.VATime;
2694$         TALLY:         Process 40.VATimePerEntity,Diff.VATime,1;
2659$         RELEASE:       Resource 28,1;
2708$         STACK,         1:Destroy:NEXT(2707$);

2707$         ASSIGN:        Process 40.NumberOut=Process 40.NumberOut + 1:
                             Process 40.WIP=Process 40.WIP-1:NEXT(305$);


;
;
;     Model statements for module:  Assign 114
;
305$          ASSIGN:        producttype=3:NEXT(180$);


;
;
;     Model statements for module:  Assign 120
;
327$          ASSIGN:        receiptc2# c3=disc(0.848,0,0.864,1,0.875,2,0.913,3,0.946,4,0.973,5,0.989,6,0.995,8,1,10,82)
                             :NEXT(331$);


;
;
;     Model statements for module:  Decide 162
;
331$          BRANCH,        1:
                             If,receiptc2# c3==0,308$,Yes:
                             If,receiptc2# c3==1,332$,Yes:
                             Else,333$,Yes;

;
;
;     Model statements for module:  Separate 36
;
333$          DUPLICATE,     100 - 50:
                             receiptc2# c3-1,2714$,50:NEXT(2713$);

2713$         ASSIGN:        Separate 36.NumberOut Orig=Separate 36.NumberOut Orig + 1:NEXT(332$);

2714$         ASSIGN:        Separate 36.NumberOut Dup=Separate 36.NumberOut Dup + 1:NEXT(332$);


;
;
;     Model statements for module:  Process 41
;
332$          ASSIGN:        Process 41.NumberIn=Process 41.NumberIn + 1:
                             Process 41.WIP=Process 41.WIP+1;
2744$         STACK,         1:Save:NEXT(2718$);

2718$         QUEUE,         Process 41.Queue;
2717$         SEIZE,         2,VA:
                             Resource 29,1:NEXT(2716$);

2716$         DELAY:         HoursToBaseTime(expo(14/receiptc2# c3,18)),,VA:NEXT(2759$);

2759$         ASSIGN:        Process 41.WaitTime=Process 41.WaitTime + Diff.WaitTime;
2723$         TALLY:         Process 41.WaitTimePerEntity,Diff.WaitTime,1;
2725$         TALLY:         Process 41.TotalTimePerEntity,Diff.StartTime,1;
2749$         ASSIGN:        Process 41.VATime=Process 41.VATime + Diff.VATime;
2750$         TALLY:         Process 41.VATimePerEntity,Diff.VATime,1;
2715$         RELEASE:       Resource 29,1;
2764$         STACK,         1:Destroy:NEXT(2763$);

2763$         ASSIGN:        Process 41.NumberOut=Process 41.NumberOut + 1:
                             Process 41.WIP=Process 41.WIP-1:NEXT(305$);


;
;
;     Model statements for module:  Create 48
;

2766$         CREATE,        1,MinutesToBaseTime(600.0001),Entity ra2rec# c3:MinutesToBaseTime(1440):NEXT(2767$);

2767$         ASSIGN:        Create for receiving a shift2 c3.NumberOut=Create for receiving a shift2 c3.NumberOut + 1
                             :NEXT(311$);


;
;
;     Model statements for module:  Decide 155
;
311$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),2770$,Yes:
                             Else,2771$,Yes;
2770$         ASSIGN:        Decide 155.NumberOut True=Decide 155.NumberOut True + 1:NEXT(306$);

2771$         ASSIGN:        Decide 155.NumberOut False=Decide 155.NumberOut False + 1:NEXT(312$);


;
;
;     Model statements for module:  Assign 115
;
306$          ASSIGN:        receipta1# c3=
                             disc(0.772,0,0.777,2,0.788,4,0.810,5,0.821,6,0.832,7,0.870,8,0.886,9,0.891,10,0.908,11,0.924,12,0.935,13,0.946,14,0.951,16,0.962,17,0.973,18,0.978,22,0.984,23,0.995,27,1,32,77)
                             :NEXT(307$);


;
;
;     Model statements for module:  Decide 154
;
307$          BRANCH,        1:
                             If,receipta1# c3==0,308$,Yes:
                             If,receipta1# c3==1,309$,Yes:
                             Else,310$,Yes;

;
;
;     Model statements for module:  Separate 31
;
310$          DUPLICATE,     100 - 50:
                             receipta1# c3-1,2776$,50:NEXT(2775$);

2775$         ASSIGN:        Separate 31.NumberOut Orig=Separate 31.NumberOut Orig + 1:NEXT(309$);

2776$         ASSIGN:        Separate 31.NumberOut Dup=Separate 31.NumberOut Dup + 1:NEXT(309$);


;
;
;     Model statements for module:  Process 36
;
309$          ASSIGN:        Process 36.NumberIn=Process 36.NumberIn + 1:
                             Process 36.WIP=Process 36.WIP+1;
2806$         STACK,         1:Save:NEXT(2780$);

2780$         QUEUE,         Process 36.Queue;
2779$         SEIZE,         2,VA:
                             Resource 24,1:NEXT(2778$);

2778$         DELAY:         HoursToBaseTime(expo(10/receipta1# c3,13)),,VA:NEXT(2821$);

2821$         ASSIGN:        Process 36.WaitTime=Process 36.WaitTime + Diff.WaitTime;
2785$         TALLY:         Process 36.WaitTimePerEntity,Diff.WaitTime,1;
2787$         TALLY:         Process 36.TotalTimePerEntity,Diff.StartTime,1;
2811$         ASSIGN:        Process 36.VATime=Process 36.VATime + Diff.VATime;
2812$         TALLY:         Process 36.VATimePerEntity,Diff.VATime,1;
2777$         RELEASE:       Resource 24,1;
2826$         STACK,         1:Destroy:NEXT(2825$);

2825$         ASSIGN:        Process 36.NumberOut=Process 36.NumberOut + 1:
                             Process 36.WIP=Process 36.WIP-1:NEXT(303$);


;
;
;     Model statements for module:  Assign 112
;
303$          ASSIGN:        producttype=1:NEXT(180$);


;
;
;     Model statements for module:  Assign 116
;
312$          ASSIGN:        receipta2# c3=
                             disc(0.810,0,0.821,1,0.832,2,0.848,4,0.853,5,0.864,6,0.880,7,0.886,8,0.891,9,0.902,10,0.913,11,0.918,12,0.924,13,0.929,14,0.940,15,0.946,16,0.962,18,0.973,20,0.978,23,0.984,26,0.989,28,0.995,29,1,36,78)
                             :NEXT(313$);


;
;
;     Model statements for module:  Decide 156
;
313$          BRANCH,        1:
                             If,receipta2# c3==0,308$,Yes:
                             If,receipta2# c3==1,315$,Yes:
                             Else,314$,Yes;

;
;
;     Model statements for module:  Separate 32
;
314$          DUPLICATE,     100 - 50:
                             receipta2# c3-1,2832$,50:NEXT(2831$);

2831$         ASSIGN:        Separate 32.NumberOut Orig=Separate 32.NumberOut Orig + 1:NEXT(315$);

2832$         ASSIGN:        Separate 32.NumberOut Dup=Separate 32.NumberOut Dup + 1:NEXT(315$);


;
;
;     Model statements for module:  Process 37
;
315$          ASSIGN:        Process 37.NumberIn=Process 37.NumberIn + 1:
                             Process 37.WIP=Process 37.WIP+1;
2862$         STACK,         1:Save:NEXT(2836$);

2836$         QUEUE,         Process 37.Queue;
2835$         SEIZE,         2,VA:
                             Resource 25,1:NEXT(2834$);

2834$         DELAY:         HoursToBaseTime(expo(14/receipta2# c3,14)),,VA:NEXT(2877$);

2877$         ASSIGN:        Process 37.WaitTime=Process 37.WaitTime + Diff.WaitTime;
2841$         TALLY:         Process 37.WaitTimePerEntity,Diff.WaitTime,1;
2843$         TALLY:         Process 37.TotalTimePerEntity,Diff.StartTime,1;
2867$         ASSIGN:        Process 37.VATime=Process 37.VATime + Diff.VATime;
2868$         TALLY:         Process 37.VATimePerEntity,Diff.VATime,1;
2833$         RELEASE:       Resource 25,1;
2882$         STACK,         1:Destroy:NEXT(2881$);

2881$         ASSIGN:        Process 37.NumberOut=Process 37.NumberOut + 1:
                             Process 37.WIP=Process 37.WIP-1:NEXT(303$);


;
;
;     Model statements for module:  Create 49
;

2884$         CREATE,        1,MinutesToBaseTime(600.0001),Entity rb2rec# c3:MinutesToBaseTime(1440):NEXT(2885$);

2885$         ASSIGN:        Create for receiving b shift2 c3.NumberOut=Create for receiving b shift2 c3.NumberOut + 1
                             :NEXT(316$);


;
;
;     Model statements for module:  Create 50
;

2888$         CREATE,        1,MinutesToBaseTime(600.0001),Entity rc2rec# c3:MinutesToBaseTime(1440):NEXT(2889$);

2889$         ASSIGN:        Create for receiving c shift2 c3.NumberOut=Create for receiving c shift2 c3.NumberOut + 1
                             :NEXT(325$);


;
;
;     Model statements for module:  Create 54
;

2892$         CREATE,        1,MinutesToBaseTime(0.0001),Entity sb1ship# c3:MinutesToBaseTime(1440):NEXT(2893$);

2893$         ASSIGN:        Create for shipment b shift1 c3.NumberOut=Create for shipment b shift1 c3.NumberOut + 1:NEXT(347$);


;
;
;     Model statements for module:  Decide 166
;
347$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),2896$,Yes:
                             Else,2897$,Yes;
2896$         ASSIGN:        Decide 166.NumberOut True=Decide 166.NumberOut True + 1:NEXT(348$);

2897$         ASSIGN:        Decide 166.NumberOut False=Decide 166.NumberOut False + 1:NEXT(349$);


;
;
;     Model statements for module:  Assign 126
;
348$          ASSIGN:        departureb1# c3=disc(0.674,0,0.717,1,0.783,2,0.810,3,0.918,4,0.973,5,1,6,109):NEXT(350$);


;
;
;     Model statements for module:  Decide 167
;
350$          BRANCH,        1:
                             If,departureb1# c3==0,341$,Yes:
                             If,departureb1# c3==1,351$,Yes:
                             Else,352$,Yes;

;
;
;     Model statements for module:  Separate 39
;
352$          DUPLICATE,     100 - 50:
                             departureb1# c3-1,2902$,50:NEXT(2901$);

2901$         ASSIGN:        Separate 39.NumberOut Orig=Separate 39.NumberOut Orig + 1:NEXT(351$);

2902$         ASSIGN:        Separate 39.NumberOut Dup=Separate 39.NumberOut Dup + 1:NEXT(351$);


;
;
;     Model statements for module:  Process 44
;
351$          ASSIGN:        Process 44.NumberIn=Process 44.NumberIn + 1:
                             Process 44.WIP=Process 44.WIP+1;
2932$         STACK,         1:Save:NEXT(2906$);

2906$         QUEUE,         Process 44.Queue;
2905$         SEIZE,         2,VA:
                             Resource 32,1:NEXT(2904$);

2904$         DELAY:         HoursToBaseTime(expo(10/departureb1# c3,45)),,VA:NEXT(2947$);

2947$         ASSIGN:        Process 44.WaitTime=Process 44.WaitTime + Diff.WaitTime;
2911$         TALLY:         Process 44.WaitTimePerEntity,Diff.WaitTime,1;
2913$         TALLY:         Process 44.TotalTimePerEntity,Diff.StartTime,1;
2937$         ASSIGN:        Process 44.VATime=Process 44.VATime + Diff.VATime;
2938$         TALLY:         Process 44.VATimePerEntity,Diff.VATime,1;
2903$         RELEASE:       Resource 32,1;
2952$         STACK,         1:Destroy:NEXT(2951$);

2951$         ASSIGN:        Process 44.NumberOut=Process 44.NumberOut + 1:
                             Process 44.WIP=Process 44.WIP-1:NEXT(335$);


;
;
;     Model statements for module:  Assign 122
;
335$          ASSIGN:        type=2:NEXT(158$);


;
;
;     Model statements for module:  Dispose 26
;
341$          ASSIGN:        Dispose 26.NumberOut=Dispose 26.NumberOut + 1;
2954$         DISPOSE:       Yes;


;
;
;     Model statements for module:  Assign 127
;
349$          ASSIGN:        departureb2# c3=disc(0.663,0,0.707,1,0.761,2,0.853,3,0.891,4,0.946,5,0.973,6,0.995,7,1,9,110)
                             :NEXT(353$);


;
;
;     Model statements for module:  Decide 168
;
353$          BRANCH,        1:
                             If,departureb2# c3==0,341$,Yes:
                             If,departureb2# c3==1,354$,Yes:
                             Else,355$,Yes;

;
;
;     Model statements for module:  Separate 40
;
355$          DUPLICATE,     100 - 50:
                             departureb2# c3-1,2959$,50:NEXT(2958$);

2958$         ASSIGN:        Separate 40.NumberOut Orig=Separate 40.NumberOut Orig + 1:NEXT(354$);

2959$         ASSIGN:        Separate 40.NumberOut Dup=Separate 40.NumberOut Dup + 1:NEXT(354$);


;
;
;     Model statements for module:  Process 45
;
354$          ASSIGN:        Process 45.NumberIn=Process 45.NumberIn + 1:
                             Process 45.WIP=Process 45.WIP+1;
2989$         STACK,         1:Save:NEXT(2963$);

2963$         QUEUE,         Process 45.Queue;
2962$         SEIZE,         2,VA:
                             Resource 33,1:NEXT(2961$);

2961$         DELAY:         HoursToBaseTime(expo(14/departureb2# c3,46)),,VA:NEXT(3004$);

3004$         ASSIGN:        Process 45.WaitTime=Process 45.WaitTime + Diff.WaitTime;
2968$         TALLY:         Process 45.WaitTimePerEntity,Diff.WaitTime,1;
2970$         TALLY:         Process 45.TotalTimePerEntity,Diff.StartTime,1;
2994$         ASSIGN:        Process 45.VATime=Process 45.VATime + Diff.VATime;
2995$         TALLY:         Process 45.VATimePerEntity,Diff.VATime,1;
2960$         RELEASE:       Resource 33,1;
3009$         STACK,         1:Destroy:NEXT(3008$);

3008$         ASSIGN:        Process 45.NumberOut=Process 45.NumberOut + 1:
                             Process 45.WIP=Process 45.WIP-1:NEXT(335$);


;
;
;     Model statements for module:  Create 55
;

3011$         CREATE,        1,MinutesToBaseTime(0.0001),Entity sc1ship# c3:MinutesToBaseTime(1440):NEXT(3012$);

3012$         ASSIGN:        Create for shipment c shift1 c3.NumberOut=Create for shipment c shift1 c3.NumberOut + 1:NEXT(356$);


;
;
;     Model statements for module:  Decide 169
;
356$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),3015$,Yes:
                             Else,3016$,Yes;
3015$         ASSIGN:        Decide 169.NumberOut True=Decide 169.NumberOut True + 1:NEXT(357$);

3016$         ASSIGN:        Decide 169.NumberOut False=Decide 169.NumberOut False + 1:NEXT(358$);


;
;
;     Model statements for module:  Assign 128
;
357$          ASSIGN:        departurec1# c3=disc(0.842,0,0.891,1,0.924,2,0.935,3,0.962,4,0.978,5,0.995,6,1,7,111):NEXT(359$);


;
;
;     Model statements for module:  Decide 170
;
359$          BRANCH,        1:
                             If,departurec1# c3==0,341$,Yes:
                             If,departurec1# c3==1,360$,Yes:
                             Else,361$,Yes;

;
;
;     Model statements for module:  Separate 41
;
361$          DUPLICATE,     100 - 50:
                             departurec1# c3-1,3021$,50:NEXT(3020$);

3020$         ASSIGN:        Separate 41.NumberOut Orig=Separate 41.NumberOut Orig + 1:NEXT(360$);

3021$         ASSIGN:        Separate 41.NumberOut Dup=Separate 41.NumberOut Dup + 1:NEXT(360$);


;
;
;     Model statements for module:  Process 46
;
360$          ASSIGN:        Process 46.NumberIn=Process 46.NumberIn + 1:
                             Process 46.WIP=Process 46.WIP+1;
3051$         STACK,         1:Save:NEXT(3025$);

3025$         QUEUE,         Process 46.Queue;
3024$         SEIZE,         2,VA:
                             Resource 34,1:NEXT(3023$);

3023$         DELAY:         HoursToBaseTime(expo(10/departurec1# c3,47)),,VA:NEXT(3066$);

3066$         ASSIGN:        Process 46.WaitTime=Process 46.WaitTime + Diff.WaitTime;
3030$         TALLY:         Process 46.WaitTimePerEntity,Diff.WaitTime,1;
3032$         TALLY:         Process 46.TotalTimePerEntity,Diff.StartTime,1;
3056$         ASSIGN:        Process 46.VATime=Process 46.VATime + Diff.VATime;
3057$         TALLY:         Process 46.VATimePerEntity,Diff.VATime,1;
3022$         RELEASE:       Resource 34,1;
3071$         STACK,         1:Destroy:NEXT(3070$);

3070$         ASSIGN:        Process 46.NumberOut=Process 46.NumberOut + 1:
                             Process 46.WIP=Process 46.WIP-1:NEXT(336$);


;
;
;     Model statements for module:  Assign 123
;
336$          ASSIGN:        type=3:NEXT(158$);


;
;
;     Model statements for module:  Assign 129
;
358$          ASSIGN:        departurec2# c3=disc(0.723,0,0.804,1,0.870,2,0.908,3,0.940,4,0.989,5,1,6,112):NEXT(362$);


;
;
;     Model statements for module:  Decide 171
;
362$          BRANCH,        1:
                             If,departurec2# c3==0,341$,Yes:
                             If,departurec2# c3==1,363$,Yes:
                             Else,364$,Yes;

;
;
;     Model statements for module:  Separate 42
;
364$          DUPLICATE,     100 - 50:
                             departurec2# c3-1,3077$,50:NEXT(3076$);

3076$         ASSIGN:        Separate 42.NumberOut Orig=Separate 42.NumberOut Orig + 1:NEXT(363$);

3077$         ASSIGN:        Separate 42.NumberOut Dup=Separate 42.NumberOut Dup + 1:NEXT(363$);


;
;
;     Model statements for module:  Process 47
;
363$          ASSIGN:        Process 47.NumberIn=Process 47.NumberIn + 1:
                             Process 47.WIP=Process 47.WIP+1;
3107$         STACK,         1:Save:NEXT(3081$);

3081$         QUEUE,         Process 47.Queue;
3080$         SEIZE,         2,VA:
                             Resource 35,1:NEXT(3079$);

3079$         DELAY:         HoursToBaseTime(expo(14/departurec2# c3,48)),,VA:NEXT(3122$);

3122$         ASSIGN:        Process 47.WaitTime=Process 47.WaitTime + Diff.WaitTime;
3086$         TALLY:         Process 47.WaitTimePerEntity,Diff.WaitTime,1;
3088$         TALLY:         Process 47.TotalTimePerEntity,Diff.StartTime,1;
3112$         ASSIGN:        Process 47.VATime=Process 47.VATime + Diff.VATime;
3113$         TALLY:         Process 47.VATimePerEntity,Diff.VATime,1;
3078$         RELEASE:       Resource 35,1;
3127$         STACK,         1:Destroy:NEXT(3126$);

3126$         ASSIGN:        Process 47.NumberOut=Process 47.NumberOut + 1:
                             Process 47.WIP=Process 47.WIP-1:NEXT(336$);


;
;
;     Model statements for module:  Create 57
;

3129$         CREATE,        1,MinutesToBaseTime(600.0001),Entity sa2ship# c3:MinutesToBaseTime(1440):NEXT(3130$);

3130$         ASSIGN:        Create for shipmenta shift2 c3.NumberOut=Create for shipmenta shift2 c3.NumberOut + 1:NEXT(338$);


;
;
;     Model statements for module:  Decide 163
;
338$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),3133$,Yes:
                             Else,3134$,Yes;
3133$         ASSIGN:        Decide 163.NumberOut True=Decide 163.NumberOut True + 1:NEXT(337$);

3134$         ASSIGN:        Decide 163.NumberOut False=Decide 163.NumberOut False + 1:NEXT(339$);


;
;
;     Model statements for module:  Assign 124
;
337$          ASSIGN:        departurea1# c3=
                             disc(0.332,0,0.386,1,0.5,2,0.707,3,0.859,4,0.946,5,0.984,6,0.989,7,0.995,8,1,10,107):NEXT(340$);


;
;
;     Model statements for module:  Decide 164
;
340$          BRANCH,        1:
                             If,departurea1# c3==0,341$,Yes:
                             If,departurea1# c3==1,342$,Yes:
                             Else,343$,Yes;

;
;
;     Model statements for module:  Separate 37
;
343$          DUPLICATE,     100 - 50:
                             departurea1# c3-1,3139$,50:NEXT(3138$);

3138$         ASSIGN:        Separate 37.NumberOut Orig=Separate 37.NumberOut Orig + 1:NEXT(342$);

3139$         ASSIGN:        Separate 37.NumberOut Dup=Separate 37.NumberOut Dup + 1:NEXT(342$);


;
;
;     Model statements for module:  Process 42
;
342$          ASSIGN:        Process 42.NumberIn=Process 42.NumberIn + 1:
                             Process 42.WIP=Process 42.WIP+1;
3169$         STACK,         1:Save:NEXT(3143$);

3143$         QUEUE,         Process 42.Queue;
3142$         SEIZE,         2,VA:
                             Resource 30,1:NEXT(3141$);

3141$         DELAY:         HoursToBaseTime(expo(10/departurea1# c3,43)),,VA:NEXT(3184$);

3184$         ASSIGN:        Process 42.WaitTime=Process 42.WaitTime + Diff.WaitTime;
3148$         TALLY:         Process 42.WaitTimePerEntity,Diff.WaitTime,1;
3150$         TALLY:         Process 42.TotalTimePerEntity,Diff.StartTime,1;
3174$         ASSIGN:        Process 42.VATime=Process 42.VATime + Diff.VATime;
3175$         TALLY:         Process 42.VATimePerEntity,Diff.VATime,1;
3140$         RELEASE:       Resource 30,1;
3189$         STACK,         1:Destroy:NEXT(3188$);

3188$         ASSIGN:        Process 42.NumberOut=Process 42.NumberOut + 1:
                             Process 42.WIP=Process 42.WIP-1:NEXT(334$);


;
;
;     Model statements for module:  Assign 121
;
334$          ASSIGN:        type=1:NEXT(158$);


;
;
;     Model statements for module:  Assign 125
;
339$          ASSIGN:        departurea2# c3=disc(0.315,0,0.408,1,0.505,2,0.685,3,0.837,4,0.929,5,0.989,6,1,7,108):NEXT(344$);


;
;
;     Model statements for module:  Decide 165
;
344$          BRANCH,        1:
                             If,departurea2# c3==0,341$,Yes:
                             If,departurea2# c3==1,346$,Yes:
                             Else,345$,Yes;

;
;
;     Model statements for module:  Separate 38
;
345$          DUPLICATE,     100 - 50:
                             departurea2# c3-1,3195$,50:NEXT(3194$);

3194$         ASSIGN:        Separate 38.NumberOut Orig=Separate 38.NumberOut Orig + 1:NEXT(346$);

3195$         ASSIGN:        Separate 38.NumberOut Dup=Separate 38.NumberOut Dup + 1:NEXT(346$);


;
;
;     Model statements for module:  Process 43
;
346$          ASSIGN:        Process 43.NumberIn=Process 43.NumberIn + 1:
                             Process 43.WIP=Process 43.WIP+1;
3225$         STACK,         1:Save:NEXT(3199$);

3199$         QUEUE,         Process 43.Queue;
3198$         SEIZE,         2,VA:
                             Resource 31,1:NEXT(3197$);

3197$         DELAY:         HoursToBaseTime(expo(14/departurea2# c3,44)),,VA:NEXT(3240$);

3240$         ASSIGN:        Process 43.WaitTime=Process 43.WaitTime + Diff.WaitTime;
3204$         TALLY:         Process 43.WaitTimePerEntity,Diff.WaitTime,1;
3206$         TALLY:         Process 43.TotalTimePerEntity,Diff.StartTime,1;
3230$         ASSIGN:        Process 43.VATime=Process 43.VATime + Diff.VATime;
3231$         TALLY:         Process 43.VATimePerEntity,Diff.VATime,1;
3196$         RELEASE:       Resource 31,1;
3245$         STACK,         1:Destroy:NEXT(3244$);

3244$         ASSIGN:        Process 43.NumberOut=Process 43.NumberOut + 1:
                             Process 43.WIP=Process 43.WIP-1:NEXT(334$);


;
;
;     Model statements for module:  Create 58
;

3247$         CREATE,        1,MinutesToBaseTime(600.0001),Entity sb2ship# c3:MinutesToBaseTime(1440):NEXT(3248$);

3248$         ASSIGN:        Create for shipment b shift2 c3.NumberOut=Create for shipment b shift2 c3.NumberOut + 1:NEXT(347$);


;
;
;     Model statements for module:  Create 60
;

3251$         CREATE,        1,MinutesToBaseTime(0.0001),Entity rb1rec# c4:MinutesToBaseTime(1440):NEXT(3252$);

3252$         ASSIGN:        Create for receiving b shift1 c4.NumberOut=Create for receiving b shift1 c4.NumberOut + 1
                             :NEXT(378$);


;
;
;     Model statements for module:  Decide 175
;
378$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),3255$,Yes:
                             Else,3256$,Yes;
3255$         ASSIGN:        Decide 175.NumberOut True=Decide 175.NumberOut True + 1:NEXT(379$);

3256$         ASSIGN:        Decide 175.NumberOut False=Decide 175.NumberOut False + 1:NEXT(380$);


;
;
;     Model statements for module:  Assign 135
;
379$          ASSIGN:        receiptb1# c4=
                             disc(0.924,0,0.929,1,0.940,2,0.946,6,0.951,8,0.962,9,0.973,15,0.978,16,0.984,17,0.989,18,0.995,19,1,21,85)
                             :NEXT(381$);


;
;
;     Model statements for module:  Decide 176
;
381$          BRANCH,        1:
                             If,receiptb1# c4==0,370$,Yes:
                             If,receiptb1# c4==1,382$,Yes:
                             Else,383$,Yes;

;
;
;     Model statements for module:  Separate 45
;
383$          DUPLICATE,     100 - 50:
                             receiptb1# c4-1,3261$,50:NEXT(3260$);

3260$         ASSIGN:        Separate 45.NumberOut Orig=Separate 45.NumberOut Orig + 1:NEXT(382$);

3261$         ASSIGN:        Separate 45.NumberOut Dup=Separate 45.NumberOut Dup + 1:NEXT(382$);


;
;
;     Model statements for module:  Process 50
;
382$          ASSIGN:        Process 50.NumberIn=Process 50.NumberIn + 1:
                             Process 50.WIP=Process 50.WIP+1;
3291$         STACK,         1:Save:NEXT(3265$);

3265$         QUEUE,         Process 50.Queue;
3264$         SEIZE,         2,VA:
                             Resource 38,1:NEXT(3263$);

3263$         DELAY:         HoursToBaseTime(expo(10/receiptb1# c4,21)),,VA:NEXT(3306$);

3306$         ASSIGN:        Process 50.WaitTime=Process 50.WaitTime + Diff.WaitTime;
3270$         TALLY:         Process 50.WaitTimePerEntity,Diff.WaitTime,1;
3272$         TALLY:         Process 50.TotalTimePerEntity,Diff.StartTime,1;
3296$         ASSIGN:        Process 50.VATime=Process 50.VATime + Diff.VATime;
3297$         TALLY:         Process 50.VATimePerEntity,Diff.VATime,1;
3262$         RELEASE:       Resource 38,1;
3311$         STACK,         1:Destroy:NEXT(3310$);

3310$         ASSIGN:        Process 50.NumberOut=Process 50.NumberOut + 1:
                             Process 50.WIP=Process 50.WIP-1:NEXT(366$);


;
;
;     Model statements for module:  Assign 131
;
366$          ASSIGN:        producttype=2:NEXT(180$);


;
;
;     Model statements for module:  Dispose 27
;
370$          ASSIGN:        Dispose 27.NumberOut=Dispose 27.NumberOut + 1;
3313$         DISPOSE:       Yes;


;
;
;     Model statements for module:  Assign 136
;
380$          ASSIGN:        receiptb2# c4=
                             disc(0.929,0,0.935,1,0.946,7,0.957,8,0.967,12,0.973,15,0.978,17,0.984,19,0.989,21,0.995,27,1,28,86)
                             :NEXT(384$);


;
;
;     Model statements for module:  Decide 177
;
384$          BRANCH,        1:
                             If,receiptb2# c4==0,370$,Yes:
                             If,receiptb2# c4==1,385$,Yes:
                             Else,386$,Yes;

;
;
;     Model statements for module:  Separate 46
;
386$          DUPLICATE,     100 - 50:
                             receiptb2# c4-1,3318$,50:NEXT(3317$);

3317$         ASSIGN:        Separate 46.NumberOut Orig=Separate 46.NumberOut Orig + 1:NEXT(385$);

3318$         ASSIGN:        Separate 46.NumberOut Dup=Separate 46.NumberOut Dup + 1:NEXT(385$);


;
;
;     Model statements for module:  Process 51
;
385$          ASSIGN:        Process 51.NumberIn=Process 51.NumberIn + 1:
                             Process 51.WIP=Process 51.WIP+1;
3348$         STACK,         1:Save:NEXT(3322$);

3322$         QUEUE,         Process 51.Queue;
3321$         SEIZE,         2,VA:
                             Resource 39,1:NEXT(3320$);

3320$         DELAY:         HoursToBaseTime(expo(14/receiptb2# c4,22)),,VA:NEXT(3363$);

3363$         ASSIGN:        Process 51.WaitTime=Process 51.WaitTime + Diff.WaitTime;
3327$         TALLY:         Process 51.WaitTimePerEntity,Diff.WaitTime,1;
3329$         TALLY:         Process 51.TotalTimePerEntity,Diff.StartTime,1;
3353$         ASSIGN:        Process 51.VATime=Process 51.VATime + Diff.VATime;
3354$         TALLY:         Process 51.VATimePerEntity,Diff.VATime,1;
3319$         RELEASE:       Resource 39,1;
3368$         STACK,         1:Destroy:NEXT(3367$);

3367$         ASSIGN:        Process 51.NumberOut=Process 51.NumberOut + 1:
                             Process 51.WIP=Process 51.WIP-1:NEXT(366$);


;
;
;     Model statements for module:  Create 61
;

3370$         CREATE,        1,MinutesToBaseTime(0.0001),Entity rc1rec# c4:MinutesToBaseTime(1440):NEXT(3371$);

3371$         ASSIGN:        Create for receiving c shift1 c4.NumberOut=Create for receiving c shift1 c4.NumberOut + 1
                             :NEXT(387$);


;
;
;     Model statements for module:  Decide 178
;
387$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),3374$,Yes:
                             Else,3375$,Yes;
3374$         ASSIGN:        Decide 178.NumberOut True=Decide 178.NumberOut True + 1:NEXT(388$);

3375$         ASSIGN:        Decide 178.NumberOut False=Decide 178.NumberOut False + 1:NEXT(389$);


;
;
;     Model statements for module:  Assign 137
;
388$          ASSIGN:        receiptc1# c4=disc(0.848,0,0.859,1,0.880,2,0.902,3,0.935,4,0.962,5,0.973,6,0.989,7,0.995,8,1,10,87)
                             :NEXT(390$);


;
;
;     Model statements for module:  Decide 179
;
390$          BRANCH,        1:
                             If,receiptc1# c4==0,370$,Yes:
                             If,receiptc1# c4==1,391$,Yes:
                             Else,392$,Yes;

;
;
;     Model statements for module:  Separate 47
;
392$          DUPLICATE,     100 - 50:
                             receiptc1# c4-1,3380$,50:NEXT(3379$);

3379$         ASSIGN:        Separate 47.NumberOut Orig=Separate 47.NumberOut Orig + 1:NEXT(391$);

3380$         ASSIGN:        Separate 47.NumberOut Dup=Separate 47.NumberOut Dup + 1:NEXT(391$);


;
;
;     Model statements for module:  Process 52
;
391$          ASSIGN:        Process 52.NumberIn=Process 52.NumberIn + 1:
                             Process 52.WIP=Process 52.WIP+1;
3410$         STACK,         1:Save:NEXT(3384$);

3384$         QUEUE,         Process 52.Queue;
3383$         SEIZE,         2,VA:
                             Resource 40,1:NEXT(3382$);

3382$         DELAY:         HoursToBaseTime(expo(10/receiptc1# c4,23)),,VA:NEXT(3425$);

3425$         ASSIGN:        Process 52.WaitTime=Process 52.WaitTime + Diff.WaitTime;
3389$         TALLY:         Process 52.WaitTimePerEntity,Diff.WaitTime,1;
3391$         TALLY:         Process 52.TotalTimePerEntity,Diff.StartTime,1;
3415$         ASSIGN:        Process 52.VATime=Process 52.VATime + Diff.VATime;
3416$         TALLY:         Process 52.VATimePerEntity,Diff.VATime,1;
3381$         RELEASE:       Resource 40,1;
3430$         STACK,         1:Destroy:NEXT(3429$);

3429$         ASSIGN:        Process 52.NumberOut=Process 52.NumberOut + 1:
                             Process 52.WIP=Process 52.WIP-1:NEXT(367$);


;
;
;     Model statements for module:  Assign 132
;
367$          ASSIGN:        producttype=3:NEXT(180$);


;
;
;     Model statements for module:  Assign 138
;
389$          ASSIGN:        receiptc2# c4=disc(0.848,0,0.864,1,0.875,2,0.913,3,0.946,4,0.973,5,0.989,6,0.995,8,1,10,88)
                             :NEXT(393$);


;
;
;     Model statements for module:  Decide 180
;
393$          BRANCH,        1:
                             If,receiptc2# c4==0,370$,Yes:
                             If,receiptc2# c4==1,394$,Yes:
                             Else,395$,Yes;

;
;
;     Model statements for module:  Separate 48
;
395$          DUPLICATE,     100 - 50:
                             receiptc2# c4-1,3436$,50:NEXT(3435$);

3435$         ASSIGN:        Separate 48.NumberOut Orig=Separate 48.NumberOut Orig + 1:NEXT(394$);

3436$         ASSIGN:        Separate 48.NumberOut Dup=Separate 48.NumberOut Dup + 1:NEXT(394$);


;
;
;     Model statements for module:  Process 53
;
394$          ASSIGN:        Process 53.NumberIn=Process 53.NumberIn + 1:
                             Process 53.WIP=Process 53.WIP+1;
3466$         STACK,         1:Save:NEXT(3440$);

3440$         QUEUE,         Process 53.Queue;
3439$         SEIZE,         2,VA:
                             Resource 41,1:NEXT(3438$);

3438$         DELAY:         HoursToBaseTime(expo(14/receiptc2# c4,24)),,VA:NEXT(3481$);

3481$         ASSIGN:        Process 53.WaitTime=Process 53.WaitTime + Diff.WaitTime;
3445$         TALLY:         Process 53.WaitTimePerEntity,Diff.WaitTime,1;
3447$         TALLY:         Process 53.TotalTimePerEntity,Diff.StartTime,1;
3471$         ASSIGN:        Process 53.VATime=Process 53.VATime + Diff.VATime;
3472$         TALLY:         Process 53.VATimePerEntity,Diff.VATime,1;
3437$         RELEASE:       Resource 41,1;
3486$         STACK,         1:Destroy:NEXT(3485$);

3485$         ASSIGN:        Process 53.NumberOut=Process 53.NumberOut + 1:
                             Process 53.WIP=Process 53.WIP-1:NEXT(367$);


;
;
;     Model statements for module:  Create 63
;

3488$         CREATE,        1,MinutesToBaseTime(600.0001),Entity ra2rec# c4:MinutesToBaseTime(1440):NEXT(3489$);

3489$         ASSIGN:        Create for receiving a shift2 c4.NumberOut=Create for receiving a shift2 c4.NumberOut + 1
                             :NEXT(373$);


;
;
;     Model statements for module:  Decide 173
;
373$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),3492$,Yes:
                             Else,3493$,Yes;
3492$         ASSIGN:        Decide 173.NumberOut True=Decide 173.NumberOut True + 1:NEXT(368$);

3493$         ASSIGN:        Decide 173.NumberOut False=Decide 173.NumberOut False + 1:NEXT(374$);


;
;
;     Model statements for module:  Assign 133
;
368$          ASSIGN:        receipta1# c4=
                             disc(0.772,0,0.777,2,0.788,4,0.810,5,0.821,6,0.832,7,0.870,8,0.886,9,0.891,10,0.908,11,0.924,12,0.935,13,0.946,14,0.951,16,0.962,17,0.973,18,0.978,22,0.984,23,0.995,27,1,32,83)
                             :NEXT(369$);


;
;
;     Model statements for module:  Decide 172
;
369$          BRANCH,        1:
                             If,receipta1# c4==0,370$,Yes:
                             If,receipta1# c4==1,371$,Yes:
                             Else,372$,Yes;

;
;
;     Model statements for module:  Separate 43
;
372$          DUPLICATE,     100 - 50:
                             receipta1# c4-1,3498$,50:NEXT(3497$);

3497$         ASSIGN:        Separate 43.NumberOut Orig=Separate 43.NumberOut Orig + 1:NEXT(371$);

3498$         ASSIGN:        Separate 43.NumberOut Dup=Separate 43.NumberOut Dup + 1:NEXT(371$);


;
;
;     Model statements for module:  Process 48
;
371$          ASSIGN:        Process 48.NumberIn=Process 48.NumberIn + 1:
                             Process 48.WIP=Process 48.WIP+1;
3528$         STACK,         1:Save:NEXT(3502$);

3502$         QUEUE,         Process 48.Queue;
3501$         SEIZE,         2,VA:
                             Resource 36,1:NEXT(3500$);

3500$         DELAY:         HoursToBaseTime(expo(10/receipta1# c4,19)),,VA:NEXT(3543$);

3543$         ASSIGN:        Process 48.WaitTime=Process 48.WaitTime + Diff.WaitTime;
3507$         TALLY:         Process 48.WaitTimePerEntity,Diff.WaitTime,1;
3509$         TALLY:         Process 48.TotalTimePerEntity,Diff.StartTime,1;
3533$         ASSIGN:        Process 48.VATime=Process 48.VATime + Diff.VATime;
3534$         TALLY:         Process 48.VATimePerEntity,Diff.VATime,1;
3499$         RELEASE:       Resource 36,1;
3548$         STACK,         1:Destroy:NEXT(3547$);

3547$         ASSIGN:        Process 48.NumberOut=Process 48.NumberOut + 1:
                             Process 48.WIP=Process 48.WIP-1:NEXT(365$);


;
;
;     Model statements for module:  Assign 130
;
365$          ASSIGN:        producttype=1:NEXT(180$);


;
;
;     Model statements for module:  Assign 134
;
374$          ASSIGN:        receipta2# c4=
                             disc(0.810,0,0.821,1,0.832,2,0.848,4,0.853,5,0.864,6,0.880,7,0.886,8,0.891,9,0.902,10,0.913,11,0.918,12,0.924,13,0.929,14,0.940,15,0.946,16,0.962,18,0.973,20,0.978,23,0.984,26,0.989,28,0.995,29,1,36,84)
                             :NEXT(375$);


;
;
;     Model statements for module:  Decide 174
;
375$          BRANCH,        1:
                             If,receipta2# c4==0,370$,Yes:
                             If,receipta2# c4==1,377$,Yes:
                             Else,376$,Yes;

;
;
;     Model statements for module:  Separate 44
;
376$          DUPLICATE,     100 - 50:
                             receipta2# c4-1,3554$,50:NEXT(3553$);

3553$         ASSIGN:        Separate 44.NumberOut Orig=Separate 44.NumberOut Orig + 1:NEXT(377$);

3554$         ASSIGN:        Separate 44.NumberOut Dup=Separate 44.NumberOut Dup + 1:NEXT(377$);


;
;
;     Model statements for module:  Process 49
;
377$          ASSIGN:        Process 49.NumberIn=Process 49.NumberIn + 1:
                             Process 49.WIP=Process 49.WIP+1;
3584$         STACK,         1:Save:NEXT(3558$);

3558$         QUEUE,         Process 49.Queue;
3557$         SEIZE,         2,VA:
                             Resource 37,1:NEXT(3556$);

3556$         DELAY:         HoursToBaseTime(expo(14/receipta2# c4,20)),,VA:NEXT(3599$);

3599$         ASSIGN:        Process 49.WaitTime=Process 49.WaitTime + Diff.WaitTime;
3563$         TALLY:         Process 49.WaitTimePerEntity,Diff.WaitTime,1;
3565$         TALLY:         Process 49.TotalTimePerEntity,Diff.StartTime,1;
3589$         ASSIGN:        Process 49.VATime=Process 49.VATime + Diff.VATime;
3590$         TALLY:         Process 49.VATimePerEntity,Diff.VATime,1;
3555$         RELEASE:       Resource 37,1;
3604$         STACK,         1:Destroy:NEXT(3603$);

3603$         ASSIGN:        Process 49.NumberOut=Process 49.NumberOut + 1:
                             Process 49.WIP=Process 49.WIP-1:NEXT(365$);


;
;
;     Model statements for module:  Create 64
;

3606$         CREATE,        1,MinutesToBaseTime(600.0001),Entity rb2rec# c4:MinutesToBaseTime(1440):NEXT(3607$);

3607$         ASSIGN:        Create for receiving b shift2 c4.NumberOut=Create for receiving b shift2 c4.NumberOut + 1
                             :NEXT(378$);


;
;
;     Model statements for module:  Create 65
;

3610$         CREATE,        1,MinutesToBaseTime(600.0001),Entity rc2rec# c4:MinutesToBaseTime(1440):NEXT(3611$);

3611$         ASSIGN:        Create for receiving c shift2 c4.NumberOut=Create for receiving c shift2 c4.NumberOut + 1
                             :NEXT(387$);


;
;
;     Model statements for module:  Create 69
;

3614$         CREATE,        1,MinutesToBaseTime(0.0001),Entity sb1ship# c4:MinutesToBaseTime(1440):NEXT(3615$);

3615$         ASSIGN:        Create for shipment b shift1 c4.NumberOut=Create for shipment b shift1 c4.NumberOut + 1:NEXT(409$);


;
;
;     Model statements for module:  Decide 184
;
409$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),3618$,Yes:
                             Else,3619$,Yes;
3618$         ASSIGN:        Decide 184.NumberOut True=Decide 184.NumberOut True + 1:NEXT(410$);

3619$         ASSIGN:        Decide 184.NumberOut False=Decide 184.NumberOut False + 1:NEXT(411$);


;
;
;     Model statements for module:  Assign 144
;
410$          ASSIGN:        departureb1# c4=disc(0.674,0,0.717,1,0.783,2,0.810,3,0.918,4,0.973,5,1,6,115):NEXT(412$);


;
;
;     Model statements for module:  Decide 185
;
412$          BRANCH,        1:
                             If,departureb1# c4==0,403$,Yes:
                             If,departureb1# c4==1,413$,Yes:
                             Else,414$,Yes;

;
;
;     Model statements for module:  Separate 51
;
414$          DUPLICATE,     100 - 50:
                             departureb1# c4-1,3624$,50:NEXT(3623$);

3623$         ASSIGN:        Separate 51.NumberOut Orig=Separate 51.NumberOut Orig + 1:NEXT(413$);

3624$         ASSIGN:        Separate 51.NumberOut Dup=Separate 51.NumberOut Dup + 1:NEXT(413$);


;
;
;     Model statements for module:  Process 56
;
413$          ASSIGN:        Process 56.NumberIn=Process 56.NumberIn + 1:
                             Process 56.WIP=Process 56.WIP+1;
3654$         STACK,         1:Save:NEXT(3628$);

3628$         QUEUE,         Process 56.Queue;
3627$         SEIZE,         2,VA:
                             Resource 44,1:NEXT(3626$);

3626$         DELAY:         HoursToBaseTime(expo(10/departureb1# c4,51)),,VA:NEXT(3669$);

3669$         ASSIGN:        Process 56.WaitTime=Process 56.WaitTime + Diff.WaitTime;
3633$         TALLY:         Process 56.WaitTimePerEntity,Diff.WaitTime,1;
3635$         TALLY:         Process 56.TotalTimePerEntity,Diff.StartTime,1;
3659$         ASSIGN:        Process 56.VATime=Process 56.VATime + Diff.VATime;
3660$         TALLY:         Process 56.VATimePerEntity,Diff.VATime,1;
3625$         RELEASE:       Resource 44,1;
3674$         STACK,         1:Destroy:NEXT(3673$);

3673$         ASSIGN:        Process 56.NumberOut=Process 56.NumberOut + 1:
                             Process 56.WIP=Process 56.WIP-1:NEXT(397$);


;
;
;     Model statements for module:  Assign 140
;
397$          ASSIGN:        type=2:NEXT(158$);


;
;
;     Model statements for module:  Dispose 28
;
403$          ASSIGN:        Dispose 28.NumberOut=Dispose 28.NumberOut + 1;
3676$         DISPOSE:       Yes;


;
;
;     Model statements for module:  Assign 145
;
411$          ASSIGN:        departureb2# c4=disc(0.663,0,0.707,1,0.761,2,0.853,3,0.891,4,0.946,5,0.973,6,0.995,7,1,9,116)
                             :NEXT(415$);


;
;
;     Model statements for module:  Decide 186
;
415$          BRANCH,        1:
                             If,departureb2# c4==0,403$,Yes:
                             If,departureb2# c4==1,416$,Yes:
                             Else,417$,Yes;

;
;
;     Model statements for module:  Separate 52
;
417$          DUPLICATE,     100 - 50:
                             departureb2# c4-1,3681$,50:NEXT(3680$);

3680$         ASSIGN:        Separate 52.NumberOut Orig=Separate 52.NumberOut Orig + 1:NEXT(416$);

3681$         ASSIGN:        Separate 52.NumberOut Dup=Separate 52.NumberOut Dup + 1:NEXT(416$);


;
;
;     Model statements for module:  Process 57
;
416$          ASSIGN:        Process 57.NumberIn=Process 57.NumberIn + 1:
                             Process 57.WIP=Process 57.WIP+1;
3711$         STACK,         1:Save:NEXT(3685$);

3685$         QUEUE,         Process 57.Queue;
3684$         SEIZE,         2,VA:
                             Resource 45,1:NEXT(3683$);

3683$         DELAY:         HoursToBaseTime(expo(14/departureb2# c4,52)),,VA:NEXT(3726$);

3726$         ASSIGN:        Process 57.WaitTime=Process 57.WaitTime + Diff.WaitTime;
3690$         TALLY:         Process 57.WaitTimePerEntity,Diff.WaitTime,1;
3692$         TALLY:         Process 57.TotalTimePerEntity,Diff.StartTime,1;
3716$         ASSIGN:        Process 57.VATime=Process 57.VATime + Diff.VATime;
3717$         TALLY:         Process 57.VATimePerEntity,Diff.VATime,1;
3682$         RELEASE:       Resource 45,1;
3731$         STACK,         1:Destroy:NEXT(3730$);

3730$         ASSIGN:        Process 57.NumberOut=Process 57.NumberOut + 1:
                             Process 57.WIP=Process 57.WIP-1:NEXT(397$);


;
;
;     Model statements for module:  Create 70
;

3733$         CREATE,        1,MinutesToBaseTime(0.0001),Entity sc1ship# c4:MinutesToBaseTime(1440):NEXT(3734$);

3734$         ASSIGN:        Create for shipment c shift1 c4.NumberOut=Create for shipment c shift1 c4.NumberOut + 1:NEXT(418$);


;
;
;     Model statements for module:  Decide 187
;
418$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),3737$,Yes:
                             Else,3738$,Yes;
3737$         ASSIGN:        Decide 187.NumberOut True=Decide 187.NumberOut True + 1:NEXT(419$);

3738$         ASSIGN:        Decide 187.NumberOut False=Decide 187.NumberOut False + 1:NEXT(420$);


;
;
;     Model statements for module:  Assign 146
;
419$          ASSIGN:        departurec1# c4=disc(0.842,0,0.891,1,0.924,2,0.935,3,0.962,4,0.978,5,0.995,6,1,7,117):NEXT(421$);


;
;
;     Model statements for module:  Decide 188
;
421$          BRANCH,        1:
                             If,departurec1# c4==0,403$,Yes:
                             If,departurec1# c4==1,422$,Yes:
                             Else,423$,Yes;

;
;
;     Model statements for module:  Separate 53
;
423$          DUPLICATE,     100 - 50:
                             departurec1# c4-1,3743$,50:NEXT(3742$);

3742$         ASSIGN:        Separate 53.NumberOut Orig=Separate 53.NumberOut Orig + 1:NEXT(422$);

3743$         ASSIGN:        Separate 53.NumberOut Dup=Separate 53.NumberOut Dup + 1:NEXT(422$);


;
;
;     Model statements for module:  Process 58
;
422$          ASSIGN:        Process 58.NumberIn=Process 58.NumberIn + 1:
                             Process 58.WIP=Process 58.WIP+1;
3773$         STACK,         1:Save:NEXT(3747$);

3747$         QUEUE,         Process 58.Queue;
3746$         SEIZE,         2,VA:
                             Resource 46,1:NEXT(3745$);

3745$         DELAY:         HoursToBaseTime(expo(10/departurec1# c4,53)),,VA:NEXT(3788$);

3788$         ASSIGN:        Process 58.WaitTime=Process 58.WaitTime + Diff.WaitTime;
3752$         TALLY:         Process 58.WaitTimePerEntity,Diff.WaitTime,1;
3754$         TALLY:         Process 58.TotalTimePerEntity,Diff.StartTime,1;
3778$         ASSIGN:        Process 58.VATime=Process 58.VATime + Diff.VATime;
3779$         TALLY:         Process 58.VATimePerEntity,Diff.VATime,1;
3744$         RELEASE:       Resource 46,1;
3793$         STACK,         1:Destroy:NEXT(3792$);

3792$         ASSIGN:        Process 58.NumberOut=Process 58.NumberOut + 1:
                             Process 58.WIP=Process 58.WIP-1:NEXT(398$);


;
;
;     Model statements for module:  Assign 141
;
398$          ASSIGN:        type=3:NEXT(158$);


;
;
;     Model statements for module:  Assign 147
;
420$          ASSIGN:        departurec2# c4=disc(0.723,0,0.804,1,0.870,2,0.908,3,0.940,4,0.989,5,1,6,118):NEXT(424$);


;
;
;     Model statements for module:  Decide 189
;
424$          BRANCH,        1:
                             If,departurec2# c4==0,403$,Yes:
                             If,departurec2# c4==1,425$,Yes:
                             Else,426$,Yes;

;
;
;     Model statements for module:  Separate 54
;
426$          DUPLICATE,     100 - 50:
                             departurec2# c4-1,3799$,50:NEXT(3798$);

3798$         ASSIGN:        Separate 54.NumberOut Orig=Separate 54.NumberOut Orig + 1:NEXT(425$);

3799$         ASSIGN:        Separate 54.NumberOut Dup=Separate 54.NumberOut Dup + 1:NEXT(425$);


;
;
;     Model statements for module:  Process 59
;
425$          ASSIGN:        Process 59.NumberIn=Process 59.NumberIn + 1:
                             Process 59.WIP=Process 59.WIP+1;
3829$         STACK,         1:Save:NEXT(3803$);

3803$         QUEUE,         Process 59.Queue;
3802$         SEIZE,         2,VA:
                             Resource 47,1:NEXT(3801$);

3801$         DELAY:         HoursToBaseTime(expo(14/departurec2# c4,54)),,VA:NEXT(3844$);

3844$         ASSIGN:        Process 59.WaitTime=Process 59.WaitTime + Diff.WaitTime;
3808$         TALLY:         Process 59.WaitTimePerEntity,Diff.WaitTime,1;
3810$         TALLY:         Process 59.TotalTimePerEntity,Diff.StartTime,1;
3834$         ASSIGN:        Process 59.VATime=Process 59.VATime + Diff.VATime;
3835$         TALLY:         Process 59.VATimePerEntity,Diff.VATime,1;
3800$         RELEASE:       Resource 47,1;
3849$         STACK,         1:Destroy:NEXT(3848$);

3848$         ASSIGN:        Process 59.NumberOut=Process 59.NumberOut + 1:
                             Process 59.WIP=Process 59.WIP-1:NEXT(398$);


;
;
;     Model statements for module:  Create 72
;

3851$         CREATE,        1,MinutesToBaseTime(600.0001),Entity sa2ship# c4:MinutesToBaseTime(1440):NEXT(3852$);

3852$         ASSIGN:        Create for shipmenta shift2 c4.NumberOut=Create for shipmenta shift2 c4.NumberOut + 1:NEXT(400$);


;
;
;     Model statements for module:  Decide 181
;
400$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),3855$,Yes:
                             Else,3856$,Yes;
3855$         ASSIGN:        Decide 181.NumberOut True=Decide 181.NumberOut True + 1:NEXT(399$);

3856$         ASSIGN:        Decide 181.NumberOut False=Decide 181.NumberOut False + 1:NEXT(401$);


;
;
;     Model statements for module:  Assign 142
;
399$          ASSIGN:        departurea1# c4=
                             disc(0.332,0,0.386,1,0.5,2,0.707,3,0.859,4,0.946,5,0.984,6,0.989,7,0.995,8,1,10,113):NEXT(402$);


;
;
;     Model statements for module:  Decide 182
;
402$          BRANCH,        1:
                             If,departurea1# c4==0,403$,Yes:
                             If,departurea1# c4==1,404$,Yes:
                             Else,405$,Yes;

;
;
;     Model statements for module:  Separate 49
;
405$          DUPLICATE,     100 - 50:
                             departurea1# c4-1,3861$,50:NEXT(3860$);

3860$         ASSIGN:        Separate 49.NumberOut Orig=Separate 49.NumberOut Orig + 1:NEXT(404$);

3861$         ASSIGN:        Separate 49.NumberOut Dup=Separate 49.NumberOut Dup + 1:NEXT(404$);


;
;
;     Model statements for module:  Process 54
;
404$          ASSIGN:        Process 54.NumberIn=Process 54.NumberIn + 1:
                             Process 54.WIP=Process 54.WIP+1;
3891$         STACK,         1:Save:NEXT(3865$);

3865$         QUEUE,         Process 54.Queue;
3864$         SEIZE,         2,VA:
                             Resource 42,1:NEXT(3863$);

3863$         DELAY:         HoursToBaseTime(expo(10/departurea1# c4,49)),,VA:NEXT(3906$);

3906$         ASSIGN:        Process 54.WaitTime=Process 54.WaitTime + Diff.WaitTime;
3870$         TALLY:         Process 54.WaitTimePerEntity,Diff.WaitTime,1;
3872$         TALLY:         Process 54.TotalTimePerEntity,Diff.StartTime,1;
3896$         ASSIGN:        Process 54.VATime=Process 54.VATime + Diff.VATime;
3897$         TALLY:         Process 54.VATimePerEntity,Diff.VATime,1;
3862$         RELEASE:       Resource 42,1;
3911$         STACK,         1:Destroy:NEXT(3910$);

3910$         ASSIGN:        Process 54.NumberOut=Process 54.NumberOut + 1:
                             Process 54.WIP=Process 54.WIP-1:NEXT(396$);


;
;
;     Model statements for module:  Assign 139
;
396$          ASSIGN:        type=1:NEXT(158$);


;
;
;     Model statements for module:  Assign 143
;
401$          ASSIGN:        departurea2# c4=disc(0.315,0,0.408,1,0.505,2,0.685,3,0.837,4,0.929,5,0.989,6,1,7,114):NEXT(406$);


;
;
;     Model statements for module:  Decide 183
;
406$          BRANCH,        1:
                             If,departurea2# c4==0,403$,Yes:
                             If,departurea2# c4==1,408$,Yes:
                             Else,407$,Yes;

;
;
;     Model statements for module:  Separate 50
;
407$          DUPLICATE,     100 - 50:
                             departurea2# c4-1,3917$,50:NEXT(3916$);

3916$         ASSIGN:        Separate 50.NumberOut Orig=Separate 50.NumberOut Orig + 1:NEXT(408$);

3917$         ASSIGN:        Separate 50.NumberOut Dup=Separate 50.NumberOut Dup + 1:NEXT(408$);


;
;
;     Model statements for module:  Process 55
;
408$          ASSIGN:        Process 55.NumberIn=Process 55.NumberIn + 1:
                             Process 55.WIP=Process 55.WIP+1;
3947$         STACK,         1:Save:NEXT(3921$);

3921$         QUEUE,         Process 55.Queue;
3920$         SEIZE,         2,VA:
                             Resource 43,1:NEXT(3919$);

3919$         DELAY:         HoursToBaseTime(expo(14/departurea2# c4,50)),,VA:NEXT(3962$);

3962$         ASSIGN:        Process 55.WaitTime=Process 55.WaitTime + Diff.WaitTime;
3926$         TALLY:         Process 55.WaitTimePerEntity,Diff.WaitTime,1;
3928$         TALLY:         Process 55.TotalTimePerEntity,Diff.StartTime,1;
3952$         ASSIGN:        Process 55.VATime=Process 55.VATime + Diff.VATime;
3953$         TALLY:         Process 55.VATimePerEntity,Diff.VATime,1;
3918$         RELEASE:       Resource 43,1;
3967$         STACK,         1:Destroy:NEXT(3966$);

3966$         ASSIGN:        Process 55.NumberOut=Process 55.NumberOut + 1:
                             Process 55.WIP=Process 55.WIP-1:NEXT(396$);


;
;
;     Model statements for module:  Create 73
;

3969$         CREATE,        1,MinutesToBaseTime(600.0001),Entity sb2ship# c4:MinutesToBaseTime(1440):NEXT(3970$);

3970$         ASSIGN:        Create for shipment b shift2 c4.NumberOut=Create for shipment b shift2 c4.NumberOut + 1:NEXT(409$);


;
;
;     Model statements for module:  Create 84
;

3973$         CREATE,        1,MinutesToBaseTime(0.0001),Entity rb1rec# c5:MinutesToBaseTime(1440):NEXT(3974$);

3974$         ASSIGN:        Create for receiving b shift1 c5.NumberOut=Create for receiving b shift1 c5.NumberOut + 1
                             :NEXT(440$);


;
;
;     Model statements for module:  Decide 202
;
440$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),3977$,Yes:
                             Else,3978$,Yes;
3977$         ASSIGN:        Decide 202.NumberOut True=Decide 202.NumberOut True + 1:NEXT(441$);

3978$         ASSIGN:        Decide 202.NumberOut False=Decide 202.NumberOut False + 1:NEXT(442$);


;
;
;     Model statements for module:  Assign 162
;
441$          ASSIGN:        receiptb1# c5=
                             disc(0.924,0,0.929,1,0.940,2,0.946,6,0.951,8,0.962,9,0.973,15,0.978,16,0.984,17,0.989,18,0.995,19,1,21,91)
                             :NEXT(443$);


;
;
;     Model statements for module:  Decide 203
;
443$          BRANCH,        1:
                             If,receiptb1# c5==0,432$,Yes:
                             If,receiptb1# c5==1,444$,Yes:
                             Else,445$,Yes;

;
;
;     Model statements for module:  Separate 63
;
445$          DUPLICATE,     100 - 50:
                             receiptb1# c5-1,3983$,50:NEXT(3982$);

3982$         ASSIGN:        Separate 63.NumberOut Orig=Separate 63.NumberOut Orig + 1:NEXT(444$);

3983$         ASSIGN:        Separate 63.NumberOut Dup=Separate 63.NumberOut Dup + 1:NEXT(444$);


;
;
;     Model statements for module:  Process 68
;
444$          ASSIGN:        Process 68.NumberIn=Process 68.NumberIn + 1:
                             Process 68.WIP=Process 68.WIP+1;
4013$         STACK,         1:Save:NEXT(3987$);

3987$         QUEUE,         Process 68.Queue;
3986$         SEIZE,         2,VA:
                             Resource 50,1:NEXT(3985$);

3985$         DELAY:         HoursToBaseTime(expo(10/receiptb1# c5,27)),,VA:NEXT(4028$);

4028$         ASSIGN:        Process 68.WaitTime=Process 68.WaitTime + Diff.WaitTime;
3992$         TALLY:         Process 68.WaitTimePerEntity,Diff.WaitTime,1;
3994$         TALLY:         Process 68.TotalTimePerEntity,Diff.StartTime,1;
4018$         ASSIGN:        Process 68.VATime=Process 68.VATime + Diff.VATime;
4019$         TALLY:         Process 68.VATimePerEntity,Diff.VATime,1;
3984$         RELEASE:       Resource 50,1;
4033$         STACK,         1:Destroy:NEXT(4032$);

4032$         ASSIGN:        Process 68.NumberOut=Process 68.NumberOut + 1:
                             Process 68.WIP=Process 68.WIP-1:NEXT(428$);


;
;
;     Model statements for module:  Assign 158
;
428$          ASSIGN:        producttype=2:NEXT(180$);


;
;
;     Model statements for module:  Dispose 30
;
432$          ASSIGN:        Dispose 30.NumberOut=Dispose 30.NumberOut + 1;
4035$         DISPOSE:       Yes;


;
;
;     Model statements for module:  Assign 163
;
442$          ASSIGN:        receiptb2# c5=
                             disc(0.929,0,0.935,1,0.946,7,0.957,8,0.967,12,0.973,15,0.978,17,0.984,19,0.989,21,0.995,27,1,28,92)
                             :NEXT(446$);


;
;
;     Model statements for module:  Decide 204
;
446$          BRANCH,        1:
                             If,receiptb2# c5==0,432$,Yes:
                             If,receiptb2# c5==1,447$,Yes:
                             Else,448$,Yes;

;
;
;     Model statements for module:  Separate 64
;
448$          DUPLICATE,     100 - 50:
                             receiptb2# c5-1,4040$,50:NEXT(4039$);

4039$         ASSIGN:        Separate 64.NumberOut Orig=Separate 64.NumberOut Orig + 1:NEXT(447$);

4040$         ASSIGN:        Separate 64.NumberOut Dup=Separate 64.NumberOut Dup + 1:NEXT(447$);


;
;
;     Model statements for module:  Process 69
;
447$          ASSIGN:        Process 69.NumberIn=Process 69.NumberIn + 1:
                             Process 69.WIP=Process 69.WIP+1;
4070$         STACK,         1:Save:NEXT(4044$);

4044$         QUEUE,         Process 69.Queue;
4043$         SEIZE,         2,VA:
                             Resource 51,1:NEXT(4042$);

4042$         DELAY:         HoursToBaseTime(expo(14/receiptb2# c5,28)),,VA:NEXT(4085$);

4085$         ASSIGN:        Process 69.WaitTime=Process 69.WaitTime + Diff.WaitTime;
4049$         TALLY:         Process 69.WaitTimePerEntity,Diff.WaitTime,1;
4051$         TALLY:         Process 69.TotalTimePerEntity,Diff.StartTime,1;
4075$         ASSIGN:        Process 69.VATime=Process 69.VATime + Diff.VATime;
4076$         TALLY:         Process 69.VATimePerEntity,Diff.VATime,1;
4041$         RELEASE:       Resource 51,1;
4090$         STACK,         1:Destroy:NEXT(4089$);

4089$         ASSIGN:        Process 69.NumberOut=Process 69.NumberOut + 1:
                             Process 69.WIP=Process 69.WIP-1:NEXT(428$);


;
;
;     Model statements for module:  Create 85
;

4092$         CREATE,        1,MinutesToBaseTime(0.0001),Entity rc1rec# c5:MinutesToBaseTime(1440):NEXT(4093$);

4093$         ASSIGN:        Create for receiving c shift1 c5.NumberOut=Create for receiving c shift1 c5.NumberOut + 1
                             :NEXT(449$);


;
;
;     Model statements for module:  Decide 205
;
449$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),4096$,Yes:
                             Else,4097$,Yes;
4096$         ASSIGN:        Decide 205.NumberOut True=Decide 205.NumberOut True + 1:NEXT(450$);

4097$         ASSIGN:        Decide 205.NumberOut False=Decide 205.NumberOut False + 1:NEXT(451$);


;
;
;     Model statements for module:  Assign 164
;
450$          ASSIGN:        receiptc1# c5=disc(0.848,0,0.859,1,0.880,2,0.902,3,0.935,4,0.962,5,0.973,6,0.989,7,0.995,8,1,10,93)
                             :NEXT(452$);


;
;
;     Model statements for module:  Decide 206
;
452$          BRANCH,        1:
                             If,receiptc1# c5==0,432$,Yes:
                             If,receiptc1# c5==1,453$,Yes:
                             Else,454$,Yes;

;
;
;     Model statements for module:  Separate 65
;
454$          DUPLICATE,     100 - 50:
                             receiptc1# c5-1,4102$,50:NEXT(4101$);

4101$         ASSIGN:        Separate 65.NumberOut Orig=Separate 65.NumberOut Orig + 1:NEXT(453$);

4102$         ASSIGN:        Separate 65.NumberOut Dup=Separate 65.NumberOut Dup + 1:NEXT(453$);


;
;
;     Model statements for module:  Process 70
;
453$          ASSIGN:        Process 70.NumberIn=Process 70.NumberIn + 1:
                             Process 70.WIP=Process 70.WIP+1;
4132$         STACK,         1:Save:NEXT(4106$);

4106$         QUEUE,         Process 70.Queue;
4105$         SEIZE,         2,VA:
                             Resource 52,1:NEXT(4104$);

4104$         DELAY:         HoursToBaseTime(expo(10/receiptc1# c5,29)),,VA:NEXT(4147$);

4147$         ASSIGN:        Process 70.WaitTime=Process 70.WaitTime + Diff.WaitTime;
4111$         TALLY:         Process 70.WaitTimePerEntity,Diff.WaitTime,1;
4113$         TALLY:         Process 70.TotalTimePerEntity,Diff.StartTime,1;
4137$         ASSIGN:        Process 70.VATime=Process 70.VATime + Diff.VATime;
4138$         TALLY:         Process 70.VATimePerEntity,Diff.VATime,1;
4103$         RELEASE:       Resource 52,1;
4152$         STACK,         1:Destroy:NEXT(4151$);

4151$         ASSIGN:        Process 70.NumberOut=Process 70.NumberOut + 1:
                             Process 70.WIP=Process 70.WIP-1:NEXT(429$);


;
;
;     Model statements for module:  Assign 159
;
429$          ASSIGN:        producttype=3:NEXT(180$);


;
;
;     Model statements for module:  Assign 165
;
451$          ASSIGN:        receiptc2# c5=disc(0.848,0,0.864,1,0.875,2,0.913,3,0.946,4,0.973,5,0.989,6,0.995,8,1,10,94)
                             :NEXT(455$);


;
;
;     Model statements for module:  Decide 207
;
455$          BRANCH,        1:
                             If,receiptc2# c5==0,432$,Yes:
                             If,receiptc2# c5==1,456$,Yes:
                             Else,457$,Yes;

;
;
;     Model statements for module:  Separate 66
;
457$          DUPLICATE,     100 - 50:
                             receiptc2# c5-1,4158$,50:NEXT(4157$);

4157$         ASSIGN:        Separate 66.NumberOut Orig=Separate 66.NumberOut Orig + 1:NEXT(456$);

4158$         ASSIGN:        Separate 66.NumberOut Dup=Separate 66.NumberOut Dup + 1:NEXT(456$);


;
;
;     Model statements for module:  Process 71
;
456$          ASSIGN:        Process 71.NumberIn=Process 71.NumberIn + 1:
                             Process 71.WIP=Process 71.WIP+1;
4188$         STACK,         1:Save:NEXT(4162$);

4162$         QUEUE,         Process 71.Queue;
4161$         SEIZE,         2,VA:
                             Resource 53,1:NEXT(4160$);

4160$         DELAY:         HoursToBaseTime(expo(14/receiptc2# c5,30)),,VA:NEXT(4203$);

4203$         ASSIGN:        Process 71.WaitTime=Process 71.WaitTime + Diff.WaitTime;
4167$         TALLY:         Process 71.WaitTimePerEntity,Diff.WaitTime,1;
4169$         TALLY:         Process 71.TotalTimePerEntity,Diff.StartTime,1;
4193$         ASSIGN:        Process 71.VATime=Process 71.VATime + Diff.VATime;
4194$         TALLY:         Process 71.VATimePerEntity,Diff.VATime,1;
4159$         RELEASE:       Resource 53,1;
4208$         STACK,         1:Destroy:NEXT(4207$);

4207$         ASSIGN:        Process 71.NumberOut=Process 71.NumberOut + 1:
                             Process 71.WIP=Process 71.WIP-1:NEXT(429$);


;
;
;     Model statements for module:  Create 87
;

4210$         CREATE,        1,MinutesToBaseTime(600.0001),Entity ra2rec# c5:MinutesToBaseTime(1440):NEXT(4211$);

4211$         ASSIGN:        Create for receiving a shift2 c5.NumberOut=Create for receiving a shift2 c5.NumberOut + 1
                             :NEXT(435$);


;
;
;     Model statements for module:  Decide 200
;
435$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),4214$,Yes:
                             Else,4215$,Yes;
4214$         ASSIGN:        Decide 200.NumberOut True=Decide 200.NumberOut True + 1:NEXT(430$);

4215$         ASSIGN:        Decide 200.NumberOut False=Decide 200.NumberOut False + 1:NEXT(436$);


;
;
;     Model statements for module:  Assign 160
;
430$          ASSIGN:        receipta1# c5=
                             disc(0.772,0,0.777,2,0.788,4,0.810,5,0.821,6,0.832,7,0.870,8,0.886,9,0.891,10,0.908,11,0.924,12,0.935,13,0.946,14,0.951,16,0.962,17,0.973,18,0.978,22,0.984,23,0.995,27,1,32,89)
                             :NEXT(431$);


;
;
;     Model statements for module:  Decide 199
;
431$          BRANCH,        1:
                             If,receipta1# c5==0,432$,Yes:
                             If,receipta1# c5==1,433$,Yes:
                             Else,434$,Yes;

;
;
;     Model statements for module:  Separate 61
;
434$          DUPLICATE,     100 - 50:
                             receipta1# c5-1,4220$,50:NEXT(4219$);

4219$         ASSIGN:        Separate 61.NumberOut Orig=Separate 61.NumberOut Orig + 1:NEXT(433$);

4220$         ASSIGN:        Separate 61.NumberOut Dup=Separate 61.NumberOut Dup + 1:NEXT(433$);


;
;
;     Model statements for module:  Process 66
;
433$          ASSIGN:        Process 66.NumberIn=Process 66.NumberIn + 1:
                             Process 66.WIP=Process 66.WIP+1;
4250$         STACK,         1:Save:NEXT(4224$);

4224$         QUEUE,         Process 66.Queue;
4223$         SEIZE,         2,VA:
                             Resource 48,1:NEXT(4222$);

4222$         DELAY:         HoursToBaseTime(expo(10/receipta1# c5,25)),,VA:NEXT(4265$);

4265$         ASSIGN:        Process 66.WaitTime=Process 66.WaitTime + Diff.WaitTime;
4229$         TALLY:         Process 66.WaitTimePerEntity,Diff.WaitTime,1;
4231$         TALLY:         Process 66.TotalTimePerEntity,Diff.StartTime,1;
4255$         ASSIGN:        Process 66.VATime=Process 66.VATime + Diff.VATime;
4256$         TALLY:         Process 66.VATimePerEntity,Diff.VATime,1;
4221$         RELEASE:       Resource 48,1;
4270$         STACK,         1:Destroy:NEXT(4269$);

4269$         ASSIGN:        Process 66.NumberOut=Process 66.NumberOut + 1:
                             Process 66.WIP=Process 66.WIP-1:NEXT(427$);


;
;
;     Model statements for module:  Assign 157
;
427$          ASSIGN:        producttype=1:NEXT(180$);


;
;
;     Model statements for module:  Assign 161
;
436$          ASSIGN:        receipta2# c5=
                             disc(0.810,0,0.821,1,0.832,2,0.848,4,0.853,5,0.864,6,0.880,7,0.886,8,0.891,9,0.902,10,0.913,11,0.918,12,0.924,13,0.929,14,0.940,15,0.946,16,0.962,18,0.973,20,0.978,23,0.984,26,0.989,28,0.995,29,1,36,90)
                             :NEXT(437$);


;
;
;     Model statements for module:  Decide 201
;
437$          BRANCH,        1:
                             If,receipta2# c5==0,432$,Yes:
                             If,receipta2# c5==1,439$,Yes:
                             Else,438$,Yes;

;
;
;     Model statements for module:  Separate 62
;
438$          DUPLICATE,     100 - 50:
                             receipta2# c5-1,4276$,50:NEXT(4275$);

4275$         ASSIGN:        Separate 62.NumberOut Orig=Separate 62.NumberOut Orig + 1:NEXT(439$);

4276$         ASSIGN:        Separate 62.NumberOut Dup=Separate 62.NumberOut Dup + 1:NEXT(439$);


;
;
;     Model statements for module:  Process 67
;
439$          ASSIGN:        Process 67.NumberIn=Process 67.NumberIn + 1:
                             Process 67.WIP=Process 67.WIP+1;
4306$         STACK,         1:Save:NEXT(4280$);

4280$         QUEUE,         Process 67.Queue;
4279$         SEIZE,         2,VA:
                             Resource 49,1:NEXT(4278$);

4278$         DELAY:         HoursToBaseTime(expo(14/receipta2# c5,26)),,VA:NEXT(4321$);

4321$         ASSIGN:        Process 67.WaitTime=Process 67.WaitTime + Diff.WaitTime;
4285$         TALLY:         Process 67.WaitTimePerEntity,Diff.WaitTime,1;
4287$         TALLY:         Process 67.TotalTimePerEntity,Diff.StartTime,1;
4311$         ASSIGN:        Process 67.VATime=Process 67.VATime + Diff.VATime;
4312$         TALLY:         Process 67.VATimePerEntity,Diff.VATime,1;
4277$         RELEASE:       Resource 49,1;
4326$         STACK,         1:Destroy:NEXT(4325$);

4325$         ASSIGN:        Process 67.NumberOut=Process 67.NumberOut + 1:
                             Process 67.WIP=Process 67.WIP-1:NEXT(427$);


;
;
;     Model statements for module:  Create 88
;

4328$         CREATE,        1,MinutesToBaseTime(600.0001),Entity rb2rec# c5:MinutesToBaseTime(1440):NEXT(4329$);

4329$         ASSIGN:        Create for receiving b shift2 c5.NumberOut=Create for receiving b shift2 c5.NumberOut + 1
                             :NEXT(440$);


;
;
;     Model statements for module:  Create 89
;

4332$         CREATE,        1,MinutesToBaseTime(600.0001),Entity rc2rec# c5:MinutesToBaseTime(1440):NEXT(4333$);

4333$         ASSIGN:        Create for receiving c shift2 c5.NumberOut=Create for receiving c shift2 c5.NumberOut + 1
                             :NEXT(449$);


;
;
;     Model statements for module:  Create 93
;

4336$         CREATE,        1,MinutesToBaseTime(0.0001),Entity sb1ship# c5:MinutesToBaseTime(1440):NEXT(4337$);

4337$         ASSIGN:        Create for shipment b shift1 c5.NumberOut=Create for shipment b shift1 c5.NumberOut + 1:NEXT(471$);


;
;
;     Model statements for module:  Decide 211
;
471$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),4340$,Yes:
                             Else,4341$,Yes;
4340$         ASSIGN:        Decide 211.NumberOut True=Decide 211.NumberOut True + 1:NEXT(472$);

4341$         ASSIGN:        Decide 211.NumberOut False=Decide 211.NumberOut False + 1:NEXT(473$);


;
;
;     Model statements for module:  Assign 171
;
472$          ASSIGN:        departureb1# c5=disc(0.674,0,0.717,1,0.783,2,0.810,3,0.918,4,0.973,5,1,6,121):NEXT(474$);


;
;
;     Model statements for module:  Decide 212
;
474$          BRANCH,        1:
                             If,departureb1# c5==0,465$,Yes:
                             If,departureb1# c5==1,475$,Yes:
                             Else,476$,Yes;

;
;
;     Model statements for module:  Separate 69
;
476$          DUPLICATE,     100 - 50:
                             departureb1# c5-1,4346$,50:NEXT(4345$);

4345$         ASSIGN:        Separate 69.NumberOut Orig=Separate 69.NumberOut Orig + 1:NEXT(475$);

4346$         ASSIGN:        Separate 69.NumberOut Dup=Separate 69.NumberOut Dup + 1:NEXT(475$);


;
;
;     Model statements for module:  Process 74
;
475$          ASSIGN:        Process 74.NumberIn=Process 74.NumberIn + 1:
                             Process 74.WIP=Process 74.WIP+1;
4376$         STACK,         1:Save:NEXT(4350$);

4350$         QUEUE,         Process 74.Queue;
4349$         SEIZE,         2,VA:
                             Resource 56,1:NEXT(4348$);

4348$         DELAY:         HoursToBaseTime(expo(10/departureb1# c5,57)),,VA:NEXT(4391$);

4391$         ASSIGN:        Process 74.WaitTime=Process 74.WaitTime + Diff.WaitTime;
4355$         TALLY:         Process 74.WaitTimePerEntity,Diff.WaitTime,1;
4357$         TALLY:         Process 74.TotalTimePerEntity,Diff.StartTime,1;
4381$         ASSIGN:        Process 74.VATime=Process 74.VATime + Diff.VATime;
4382$         TALLY:         Process 74.VATimePerEntity,Diff.VATime,1;
4347$         RELEASE:       Resource 56,1;
4396$         STACK,         1:Destroy:NEXT(4395$);

4395$         ASSIGN:        Process 74.NumberOut=Process 74.NumberOut + 1:
                             Process 74.WIP=Process 74.WIP-1:NEXT(459$);


;
;
;     Model statements for module:  Assign 167
;
459$          ASSIGN:        type=2:NEXT(158$);


;
;
;     Model statements for module:  Dispose 31
;
465$          ASSIGN:        Dispose 31.NumberOut=Dispose 31.NumberOut + 1;
4398$         DISPOSE:       Yes;


;
;
;     Model statements for module:  Assign 172
;
473$          ASSIGN:        departureb2# c5=disc(0.663,0,0.707,1,0.761,2,0.853,3,0.891,4,0.946,5,0.973,6,0.995,7,1,9,122)
                             :NEXT(477$);


;
;
;     Model statements for module:  Decide 213
;
477$          BRANCH,        1:
                             If,departureb2# c5==0,465$,Yes:
                             If,departureb2# c5==1,478$,Yes:
                             Else,479$,Yes;

;
;
;     Model statements for module:  Separate 70
;
479$          DUPLICATE,     100 - 50:
                             departureb2# c5-1,4403$,50:NEXT(4402$);

4402$         ASSIGN:        Separate 70.NumberOut Orig=Separate 70.NumberOut Orig + 1:NEXT(478$);

4403$         ASSIGN:        Separate 70.NumberOut Dup=Separate 70.NumberOut Dup + 1:NEXT(478$);


;
;
;     Model statements for module:  Process 75
;
478$          ASSIGN:        Process 75.NumberIn=Process 75.NumberIn + 1:
                             Process 75.WIP=Process 75.WIP+1;
4433$         STACK,         1:Save:NEXT(4407$);

4407$         QUEUE,         Process 75.Queue;
4406$         SEIZE,         2,VA:
                             Resource 57,1:NEXT(4405$);

4405$         DELAY:         HoursToBaseTime(expo(14/departureb2# c5,58)),,VA:NEXT(4448$);

4448$         ASSIGN:        Process 75.WaitTime=Process 75.WaitTime + Diff.WaitTime;
4412$         TALLY:         Process 75.WaitTimePerEntity,Diff.WaitTime,1;
4414$         TALLY:         Process 75.TotalTimePerEntity,Diff.StartTime,1;
4438$         ASSIGN:        Process 75.VATime=Process 75.VATime + Diff.VATime;
4439$         TALLY:         Process 75.VATimePerEntity,Diff.VATime,1;
4404$         RELEASE:       Resource 57,1;
4453$         STACK,         1:Destroy:NEXT(4452$);

4452$         ASSIGN:        Process 75.NumberOut=Process 75.NumberOut + 1:
                             Process 75.WIP=Process 75.WIP-1:NEXT(459$);


;
;
;     Model statements for module:  Create 94
;

4455$         CREATE,        1,MinutesToBaseTime(0.0001),Entity sc1ship# c5:MinutesToBaseTime(1440):NEXT(4456$);

4456$         ASSIGN:        Create for shipment c shift1 c5.NumberOut=Create for shipment c shift1 c5.NumberOut + 1:NEXT(480$);


;
;
;     Model statements for module:  Decide 214
;
480$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),4459$,Yes:
                             Else,4460$,Yes;
4459$         ASSIGN:        Decide 214.NumberOut True=Decide 214.NumberOut True + 1:NEXT(481$);

4460$         ASSIGN:        Decide 214.NumberOut False=Decide 214.NumberOut False + 1:NEXT(482$);


;
;
;     Model statements for module:  Assign 173
;
481$          ASSIGN:        departurec1# c5=disc(0.842,0,0.891,1,0.924,2,0.935,3,0.962,4,0.978,5,0.995,6,1,7,123):NEXT(483$);


;
;
;     Model statements for module:  Decide 215
;
483$          BRANCH,        1:
                             If,departurec1# c5==0,465$,Yes:
                             If,departurec1# c5==1,484$,Yes:
                             Else,485$,Yes;

;
;
;     Model statements for module:  Separate 71
;
485$          DUPLICATE,     100 - 50:
                             departurec1# c5-1,4465$,50:NEXT(4464$);

4464$         ASSIGN:        Separate 71.NumberOut Orig=Separate 71.NumberOut Orig + 1:NEXT(484$);

4465$         ASSIGN:        Separate 71.NumberOut Dup=Separate 71.NumberOut Dup + 1:NEXT(484$);


;
;
;     Model statements for module:  Process 76
;
484$          ASSIGN:        Process 76.NumberIn=Process 76.NumberIn + 1:
                             Process 76.WIP=Process 76.WIP+1;
4495$         STACK,         1:Save:NEXT(4469$);

4469$         QUEUE,         Process 76.Queue;
4468$         SEIZE,         2,VA:
                             Resource 58,1:NEXT(4467$);

4467$         DELAY:         HoursToBaseTime(expo(10/departurec1# c5,59)),,VA:NEXT(4510$);

4510$         ASSIGN:        Process 76.WaitTime=Process 76.WaitTime + Diff.WaitTime;
4474$         TALLY:         Process 76.WaitTimePerEntity,Diff.WaitTime,1;
4476$         TALLY:         Process 76.TotalTimePerEntity,Diff.StartTime,1;
4500$         ASSIGN:        Process 76.VATime=Process 76.VATime + Diff.VATime;
4501$         TALLY:         Process 76.VATimePerEntity,Diff.VATime,1;
4466$         RELEASE:       Resource 58,1;
4515$         STACK,         1:Destroy:NEXT(4514$);

4514$         ASSIGN:        Process 76.NumberOut=Process 76.NumberOut + 1:
                             Process 76.WIP=Process 76.WIP-1:NEXT(460$);


;
;
;     Model statements for module:  Assign 168
;
460$          ASSIGN:        type=3:NEXT(158$);


;
;
;     Model statements for module:  Assign 174
;
482$          ASSIGN:        departurec2# c5=disc(0.723,0,0.804,1,0.870,2,0.908,3,0.940,4,0.989,5,1,6,124):NEXT(486$);


;
;
;     Model statements for module:  Decide 216
;
486$          BRANCH,        1:
                             If,departurec2# c5==0,465$,Yes:
                             If,departurec2# c5==1,487$,Yes:
                             Else,488$,Yes;

;
;
;     Model statements for module:  Separate 72
;
488$          DUPLICATE,     100 - 50:
                             departurec2# c5-1,4521$,50:NEXT(4520$);

4520$         ASSIGN:        Separate 72.NumberOut Orig=Separate 72.NumberOut Orig + 1:NEXT(487$);

4521$         ASSIGN:        Separate 72.NumberOut Dup=Separate 72.NumberOut Dup + 1:NEXT(487$);


;
;
;     Model statements for module:  Process 77
;
487$          ASSIGN:        Process 77.NumberIn=Process 77.NumberIn + 1:
                             Process 77.WIP=Process 77.WIP+1;
4551$         STACK,         1:Save:NEXT(4525$);

4525$         QUEUE,         Process 77.Queue;
4524$         SEIZE,         2,VA:
                             Resource 59,1:NEXT(4523$);

4523$         DELAY:         HoursToBaseTime(expo(14/departurec2# c5,60)),,VA:NEXT(4566$);

4566$         ASSIGN:        Process 77.WaitTime=Process 77.WaitTime + Diff.WaitTime;
4530$         TALLY:         Process 77.WaitTimePerEntity,Diff.WaitTime,1;
4532$         TALLY:         Process 77.TotalTimePerEntity,Diff.StartTime,1;
4556$         ASSIGN:        Process 77.VATime=Process 77.VATime + Diff.VATime;
4557$         TALLY:         Process 77.VATimePerEntity,Diff.VATime,1;
4522$         RELEASE:       Resource 59,1;
4571$         STACK,         1:Destroy:NEXT(4570$);

4570$         ASSIGN:        Process 77.NumberOut=Process 77.NumberOut + 1:
                             Process 77.WIP=Process 77.WIP-1:NEXT(460$);


;
;
;     Model statements for module:  Create 96
;

4573$         CREATE,        1,MinutesToBaseTime(600.0001),Entity sa2ship# c5:MinutesToBaseTime(1440):NEXT(4574$);

4574$         ASSIGN:        Create for shipmenta shift2 c5.NumberOut=Create for shipmenta shift2 c5.NumberOut + 1:NEXT(462$);


;
;
;     Model statements for module:  Decide 208
;
462$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),4577$,Yes:
                             Else,4578$,Yes;
4577$         ASSIGN:        Decide 208.NumberOut True=Decide 208.NumberOut True + 1:NEXT(461$);

4578$         ASSIGN:        Decide 208.NumberOut False=Decide 208.NumberOut False + 1:NEXT(463$);


;
;
;     Model statements for module:  Assign 169
;
461$          ASSIGN:        departurea1# c5=
                             disc(0.332,0,0.386,1,0.5,2,0.707,3,0.859,4,0.946,5,0.984,6,0.989,7,0.995,8,1,10,119):NEXT(464$);


;
;
;     Model statements for module:  Decide 209
;
464$          BRANCH,        1:
                             If,departurea1# c5==0,465$,Yes:
                             If,departurea1# c5==1,466$,Yes:
                             Else,467$,Yes;

;
;
;     Model statements for module:  Separate 67
;
467$          DUPLICATE,     100 - 50:
                             departurea1# c5-1,4583$,50:NEXT(4582$);

4582$         ASSIGN:        Separate 67.NumberOut Orig=Separate 67.NumberOut Orig + 1:NEXT(466$);

4583$         ASSIGN:        Separate 67.NumberOut Dup=Separate 67.NumberOut Dup + 1:NEXT(466$);


;
;
;     Model statements for module:  Process 72
;
466$          ASSIGN:        Process 72.NumberIn=Process 72.NumberIn + 1:
                             Process 72.WIP=Process 72.WIP+1;
4613$         STACK,         1:Save:NEXT(4587$);

4587$         QUEUE,         Process 72.Queue;
4586$         SEIZE,         2,VA:
                             Resource 54,1:NEXT(4585$);

4585$         DELAY:         HoursToBaseTime(expo(10/departurea1# c5,55)),,VA:NEXT(4628$);

4628$         ASSIGN:        Process 72.WaitTime=Process 72.WaitTime + Diff.WaitTime;
4592$         TALLY:         Process 72.WaitTimePerEntity,Diff.WaitTime,1;
4594$         TALLY:         Process 72.TotalTimePerEntity,Diff.StartTime,1;
4618$         ASSIGN:        Process 72.VATime=Process 72.VATime + Diff.VATime;
4619$         TALLY:         Process 72.VATimePerEntity,Diff.VATime,1;
4584$         RELEASE:       Resource 54,1;
4633$         STACK,         1:Destroy:NEXT(4632$);

4632$         ASSIGN:        Process 72.NumberOut=Process 72.NumberOut + 1:
                             Process 72.WIP=Process 72.WIP-1:NEXT(458$);


;
;
;     Model statements for module:  Assign 166
;
458$          ASSIGN:        type=1:NEXT(158$);


;
;
;     Model statements for module:  Assign 170
;
463$          ASSIGN:        departurea2# c5=disc(0.315,0,0.408,1,0.505,2,0.685,3,0.837,4,0.929,5,0.989,6,1,7,120):NEXT(468$);


;
;
;     Model statements for module:  Decide 210
;
468$          BRANCH,        1:
                             If,departurea2# c5==0,465$,Yes:
                             If,departurea2# c5==1,470$,Yes:
                             Else,469$,Yes;

;
;
;     Model statements for module:  Separate 68
;
469$          DUPLICATE,     100 - 50:
                             departurea2# c5-1,4639$,50:NEXT(4638$);

4638$         ASSIGN:        Separate 68.NumberOut Orig=Separate 68.NumberOut Orig + 1:NEXT(470$);

4639$         ASSIGN:        Separate 68.NumberOut Dup=Separate 68.NumberOut Dup + 1:NEXT(470$);


;
;
;     Model statements for module:  Process 73
;
470$          ASSIGN:        Process 73.NumberIn=Process 73.NumberIn + 1:
                             Process 73.WIP=Process 73.WIP+1;
4669$         STACK,         1:Save:NEXT(4643$);

4643$         QUEUE,         Process 73.Queue;
4642$         SEIZE,         2,VA:
                             Resource 55,1:NEXT(4641$);

4641$         DELAY:         HoursToBaseTime(expo(14/departurea2# c5,56)),,VA:NEXT(4684$);

4684$         ASSIGN:        Process 73.WaitTime=Process 73.WaitTime + Diff.WaitTime;
4648$         TALLY:         Process 73.WaitTimePerEntity,Diff.WaitTime,1;
4650$         TALLY:         Process 73.TotalTimePerEntity,Diff.StartTime,1;
4674$         ASSIGN:        Process 73.VATime=Process 73.VATime + Diff.VATime;
4675$         TALLY:         Process 73.VATimePerEntity,Diff.VATime,1;
4640$         RELEASE:       Resource 55,1;
4689$         STACK,         1:Destroy:NEXT(4688$);

4688$         ASSIGN:        Process 73.NumberOut=Process 73.NumberOut + 1:
                             Process 73.WIP=Process 73.WIP-1:NEXT(458$);


;
;
;     Model statements for module:  Create 97
;

4691$         CREATE,        1,MinutesToBaseTime(600.0001),Entity sb2ship# c5:MinutesToBaseTime(1440):NEXT(4692$);

4692$         ASSIGN:        Create for shipment b shift2 c5.NumberOut=Create for shipment b shift2 c5.NumberOut + 1:NEXT(471$);


;
;
;     Model statements for module:  Create 99
;

4695$         CREATE,        1,MinutesToBaseTime(0.0001),Entity ra1rec# c2:MinutesToBaseTime(1440):NEXT(4696$);

4696$         ASSIGN:        Create for receiving a shift1 c2.NumberOut=Create for receiving a shift1 c2.NumberOut + 1
                             :NEXT(240$);


;
;
;     Model statements for module:  Create 100
;

4699$         CREATE,        1,MinutesToBaseTime(0.0001),Entity ra1rec# c1:MinutesToBaseTime(1440):NEXT(4700$);

4700$         ASSIGN:        Create for receiving a shift1 c1.NumberOut=Create for receiving a shift1 c1.NumberOut + 1
                             :NEXT(100$);


;
;
;     Model statements for module:  Create 101
;

4703$         CREATE,        1,MinutesToBaseTime(0.0001),Entity sa1ship# c1:MinutesToBaseTime(1440):NEXT(4704$);

4704$         ASSIGN:        Create for shipmenta shift1 c1.NumberOut=Create for shipmenta shift1 c1.NumberOut + 1:NEXT(105$);


;
;
;     Model statements for module:  Create 102
;

4707$         CREATE,        1,MinutesToBaseTime(0.0001),Entity sa1ship# c2:MinutesToBaseTime(1440):NEXT(4708$);

4708$         ASSIGN:        Create for shipmenta shift1 c2.NumberOut=Create for shipmenta shift1 c2.NumberOut + 1:NEXT(266$);


;
;
;     Model statements for module:  Create 103
;

4711$         CREATE,        1,MinutesToBaseTime(0.0001),Entity ra1rec# c3:MinutesToBaseTime(1440):NEXT(4712$);

4712$         ASSIGN:        Create for receiving a shift1 c3.NumberOut=Create for receiving a shift1 c3.NumberOut + 1
                             :NEXT(311$);


;
;
;     Model statements for module:  Create 104
;

4715$         CREATE,        1,MinutesToBaseTime(0.0001),Entity sa1ship# c3:MinutesToBaseTime(1440):NEXT(4716$);

4716$         ASSIGN:        Create for shipmenta shift1 c3.NumberOut=Create for shipmenta shift1 c3.NumberOut + 1:NEXT(338$);


;
;
;     Model statements for module:  Create 105
;

4719$         CREATE,        1,MinutesToBaseTime(0.0001),Entity ra1rec# c4:MinutesToBaseTime(1440):NEXT(4720$);

4720$         ASSIGN:        Create for receiving a shift1 c4.NumberOut=Create for receiving a shift1 c4.NumberOut + 1
                             :NEXT(373$);


;
;
;     Model statements for module:  Create 106
;

4723$         CREATE,        1,MinutesToBaseTime(0.0001),Entity sa1ship# c4:MinutesToBaseTime(1440):NEXT(4724$);

4724$         ASSIGN:        Create for shipmenta shift1 c4.NumberOut=Create for shipmenta shift1 c4.NumberOut + 1:NEXT(400$);


;
;
;     Model statements for module:  Create 107
;

4727$         CREATE,        1,MinutesToBaseTime(0.0001),Entity ra1rec# c5:MinutesToBaseTime(1440):NEXT(4728$);

4728$         ASSIGN:        Create for receiving a shift1 c5.NumberOut=Create for receiving a shift1 c5.NumberOut + 1
                             :NEXT(435$);


;
;
;     Model statements for module:  Create 108
;

4731$         CREATE,        1,MinutesToBaseTime(0.0001),Entity sa1ship# c5:MinutesToBaseTime(1440):NEXT(4732$);

4732$         ASSIGN:        Create for shipmenta shift1 c5.NumberOut=Create for shipmenta shift1 c5.NumberOut + 1:NEXT(462$);


;
;
;     Model statements for module:  Create 109
;

4735$         CREATE,        1,MinutesToBaseTime(600.0001),Entity sc2ship# c1:MinutesToBaseTime(1440):NEXT(4736$);

4736$         ASSIGN:        Create for shipment c shift2 c1.NumberOut=Create for shipment c shift2 c1.NumberOut + 1:NEXT(141$);


;
;
;     Model statements for module:  Create 110
;

4739$         CREATE,        1,MinutesToBaseTime(600.0001),Entity sc2ship# c2:MinutesToBaseTime(1440):NEXT(4740$);

4740$         ASSIGN:        Create for shipment c shift2 c2.NumberOut=Create for shipment c shift2 c2.NumberOut + 1:NEXT(284$);


;
;
;     Model statements for module:  Create 111
;

4743$         CREATE,        1,MinutesToBaseTime(600.0001),Entity sc2ship# c3:MinutesToBaseTime(1440):NEXT(4744$);

4744$         ASSIGN:        Create for shipment c shift2 c3.NumberOut=Create for shipment c shift2 c3.NumberOut + 1:NEXT(356$);


;
;
;     Model statements for module:  Create 112
;

4747$         CREATE,        1,MinutesToBaseTime(600.0001),Entity sc2ship# c4:MinutesToBaseTime(1440):NEXT(4748$);

4748$         ASSIGN:        Create for shipment c shift2 c4.NumberOut=Create for shipment c shift2 c4.NumberOut + 1:NEXT(418$);


;
;
;     Model statements for module:  Create 113
;

4751$         CREATE,        1,MinutesToBaseTime(600.0001),Entity sc2ship# c5:MinutesToBaseTime(1440):NEXT(4752$);

4752$         ASSIGN:        Create for shipment c shift2 c5.NumberOut=Create for shipment c shift2 c5.NumberOut + 1:NEXT(480$);


;
;
;     Model statements for module:  Create 114
;

4755$         CREATE,        1,MinutesToBaseTime(600),Entity 1:MinutesToBaseTime(1440):NEXT(4756$);

4756$         ASSIGN:        Create 114.NumberOut=Create 114.NumberOut + 1:NEXT(551$);


;
;
;     Model statements for module:  ReadWrite 1
;
551$          WRITE,         percentage45_1:
                             tnow,
                             nc(# of trucks that are in system  more than 45 minutes from d1),
                             nc(#of trucks that are from d1),
                             nc(# of trucks that are in system  more than 45 minutes from d2),
                             nc(#of trucks that are from d2),
                             nc(day#):NEXT(555$);


;
;
;     Model statements for module:  Record 33
;
555$          COUNT:         day#,1:NEXT(552$);


;
;
;     Model statements for module:  Dispose 32
;
552$          ASSIGN:        Dispose 32.NumberOut=Dispose 32.NumberOut + 1;
4759$         DISPOSE:       Yes;


;
;
;     Model statements for module:  Create 115
;

4760$         CREATE,        1,MinutesToBaseTime(1440),Entity 1:MinutesToBaseTime(1440):NEXT(4761$);

4761$         ASSIGN:        Create 115.NumberOut=Create 115.NumberOut + 1:NEXT(553$);


;
;
;     Model statements for module:  ReadWrite 2
;
553$          WRITE,         percentage45_2:
                             tnow,
                             nc(# of trucks that are in system  more than 45 minutes from d1),
                             nc(#of trucks that are from d1),
                             nc(# of trucks that are in system  more than 45 minutes from d2),
                             nc(#of trucks that are from d2),
                             nc(day#):NEXT(556$);


;
;
;     Model statements for module:  Record 34
;
556$          COUNT:         day#,1:NEXT(554$);


;
;
;     Model statements for module:  Dispose 33
;
554$          ASSIGN:        Dispose 33.NumberOut=Dispose 33.NumberOut + 1;
4764$         DISPOSE:       Yes;









